From e14b0556511c6db0223cf2e20c05af48ffa86fc2 Mon Sep 17 00:00:00 2001 From: d11n Date: Wed, 12 Jun 2024 11:13:51 +0200 Subject: [PATCH] Pull payment: Enable CORS for LNURL request (#6044) Fixes #6043 and ensures Mutiny Wallet can do the LNURL request. --- BTCPayServer/Controllers/UILNURLController.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/BTCPayServer/Controllers/UILNURLController.cs b/BTCPayServer/Controllers/UILNURLController.cs index 41aff6b76..66a52d088 100644 --- a/BTCPayServer/Controllers/UILNURLController.cs +++ b/BTCPayServer/Controllers/UILNURLController.cs @@ -89,11 +89,14 @@ namespace BTCPayServer _pluginHookService = pluginHookService; _invoiceActivator = invoiceActivator; } + + [EnableCors(CorsPolicies.All)] [HttpGet("withdraw/pp/{pullPaymentId}")] public Task GetLNURLForPullPayment(string cryptoCode, string pullPaymentId, [FromQuery] string pr, CancellationToken cancellationToken) { return GetLNURLForPullPayment(cryptoCode, pullPaymentId, pr, pullPaymentId, cancellationToken); } + [NonAction] internal async Task GetLNURLForPullPayment(string cryptoCode, string pullPaymentId, string pr, string k1, CancellationToken cancellationToken) {