diff --git a/frontend/next.config.js b/frontend/next.config.js new file mode 100644 index 000000000..6c7d87c80 --- /dev/null +++ b/frontend/next.config.js @@ -0,0 +1,25 @@ +const nextConfig = { + async headers() { + return [ + { + source: "/(.*)", // Match all routes + headers: [ + { + key: "Access-Control-Allow-Origin", + value: "*", // Allow requests from any origin + }, + { + key: "Access-Control-Allow-Methods", + value: "GET, POST, PUT, DELETE, OPTIONS", + }, + { + key: "Access-Control-Allow-Headers", + value: "Content-Type, Authorization", + }, + ], + }, + ]; + }, +}; + +module.exports = nextConfig; \ No newline at end of file