Files
Dashboard/next.config.ts
2025-10-05 17:09:01 +02:00

28 lines
608 B
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
async headers() {
return [
{
source: "/api/:path*",
headers: [
{
key: "Access-Control-Allow-Origin",
value: "https://dashboard.cercle-gpt.com",
},
{
key: "Access-Control-Allow-Methods",
value: "GET, POST, PUT, DELETE, OPTIONS",
},
{
key: "Access-Control-Allow-Headers",
value: "Content-Type, Authorization",
},
],
},
];
},
};
export default nextConfig;