Pull payment: Enable CORS for LNURL request (#6044)

Fixes #6043 and ensures Mutiny Wallet can do the LNURL request.
This commit is contained in:
d11n 2024-06-12 11:13:51 +02:00 committed by GitHub
parent e5a09cbeaa
commit e14b055651
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -89,11 +89,14 @@ namespace BTCPayServer
_pluginHookService = pluginHookService;
_invoiceActivator = invoiceActivator;
}
[EnableCors(CorsPolicies.All)]
[HttpGet("withdraw/pp/{pullPaymentId}")]
public Task<IActionResult> GetLNURLForPullPayment(string cryptoCode, string pullPaymentId, [FromQuery] string pr, CancellationToken cancellationToken)
{
return GetLNURLForPullPayment(cryptoCode, pullPaymentId, pr, pullPaymentId, cancellationToken);
}
[NonAction]
internal async Task<IActionResult> GetLNURLForPullPayment(string cryptoCode, string pullPaymentId, string pr, string k1, CancellationToken cancellationToken)
{