diff --git a/BTCPayServer/Controllers/UILNURLController.cs b/BTCPayServer/Controllers/UILNURLController.cs index 304772988..a9f81d2d6 100644 --- a/BTCPayServer/Controllers/UILNURLController.cs +++ b/BTCPayServer/Controllers/UILNURLController.cs @@ -81,7 +81,6 @@ namespace BTCPayServer _btcPayNetworkJsonSerializerSettings = btcPayNetworkJsonSerializerSettings; } - [HttpGet("withdraw/pp/{pullPaymentId}")] public async Task GetLNURLForPullPayment(string cryptoCode, string pullPaymentId, string pr, CancellationToken cancellationToken) { @@ -212,6 +211,7 @@ namespace BTCPayServer return Ok(request); } + [HttpGet("pay/app/{appId}/{itemCode}")] public async Task GetLNURLForApp(string cryptoCode, string appId, string itemCode = null) { @@ -470,6 +470,8 @@ namespace BTCPayServer } [HttpGet("pay/i/{invoiceId}")] + [EnableCors(CorsPolicies.All)] + [IgnoreAntiforgeryToken] public async Task GetLNURLForInvoice(string invoiceId, string cryptoCode, [FromQuery] long? amount = null, string comment = null) {