diff --git a/next.config.js b/next.config.js index 9310a5b..ee69a2b 100644 --- a/next.config.js +++ b/next.config.js @@ -27,7 +27,7 @@ module.exports = removeImports({ async headers() { return [ { - source: "/api/:path*", + source: "/api/:slug*", headers: [ { key: "Access-Control-Allow-Origin", @@ -62,12 +62,16 @@ module.exports = removeImports({ value: "max-age=31536000; includeSubDomains; preload" }, ], - source: "/api/.well-known/:path*", + source: "/api/.well-known/:slug*", headers: [ { key: "Access-Control-Allow-Origin", value: "*" }, + { + key: "Access-Control-Allow-Methods", + value: "GET, POST, PUT, DELETE, OPTIONS", + }, { key: 'Cache-Control', value: 'no-cache, max-age=0, must-revalidate'