From a4c99f3685593e872c720f25a68b83dce9c7ea04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=CE=9EDKAZ=E2=9A=A1?= Date: Tue, 12 Nov 2024 12:21:10 +0800 Subject: [PATCH] fix cors .well-known --- next.config.mjs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/next.config.mjs b/next.config.mjs index 82957f3..cdf431c 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -15,6 +15,19 @@ const nextConfig = { }, ], }, + { + source: '/.well-known/lnurlp/:path*', + headers: [ + { + key: 'Access-Control-Allow-Origin', + value: '*', + }, + { + key: 'Access-Control-Allow-Methods', + value: 'GET, POST, PUT, DELETE, OPTIONS', + }, + ], + }, ]; }, };