Skip to content

Commit c00d0ac

Browse files
Remove CORS Config
1 parent cce5df0 commit c00d0ac

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

frontend/next.config.mjs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,6 @@ const nextConfig = {
88
},
99
images: {
1010
unoptimized: true,
11-
},
12-
async headers() {
13-
return [
14-
{
15-
// Matches all API routes
16-
source: "/:path*",
17-
headers: [
18-
{ key: "Access-Control-Allow-Credentials", value: "true" },
19-
// Replace with your allowed origin(s) or "*" for all
20-
{ key: "Access-Control-Allow-Origin", value: "*" },
21-
{ key: "Access-Control-Allow-Methods", value: "GET,DELETE,PATCH,POST,PUT" },
22-
{ key: "Access-Control-Allow-Headers", value: "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version" },
23-
]
24-
}
25-
]
2611
}
2712
};
2813

0 commit comments

Comments
 (0)