fix(mcp): honor public OAuth origin

This commit is contained in:
ajnart committed 2026-09-06 10:44:17 +02:00
1 parent 35155b18b9
commit f59c8a993a
13 files changed
+115 -72

No files matched your search

+9
View File
@@ -65,6 +65,15 @@ const nextConfig: NextConfig = {
},
],
},
async rewrites() {
return [
{ source: "/.well-known/:path*", destination: "/well-known/:path*" },
{
source: "/api/mcp/:transport/.well-known/:path*",
destination: "/well-known/:path*/api/mcp/:transport",
},
];
},
// skipcq: JS-0116
// eslint-disable-next-line @typescript-eslint/require-await,no-restricted-syntax
async headers() {