mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-21 14:04:12 +01:00
Add missing CORS to ln address of BTCPay (Compatibility Beach Wallet) (#4587)
This commit is contained in:
parent
8fc2729fab
commit
ca1dac4cc3
1 changed files with 3 additions and 0 deletions
|
@ -26,6 +26,7 @@ using BTCPayServer.Services.Rates;
|
|||
using BTCPayServer.Services.Stores;
|
||||
using LNURL;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Cors;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Routing;
|
||||
using NBitcoin;
|
||||
|
@ -320,6 +321,8 @@ namespace BTCPayServer
|
|||
}
|
||||
|
||||
[HttpGet("~/.well-known/lnurlp/{username}")]
|
||||
[EnableCors(CorsPolicies.All)]
|
||||
[IgnoreAntiforgeryToken]
|
||||
public async Task<IActionResult> ResolveLightningAddress(string username)
|
||||
{
|
||||
var lightningAddressSettings = await _lightningAddressService.ResolveByAddress(username);
|
||||
|
|
Loading…
Add table
Reference in a new issue