diff --git a/next.config.ts b/next.config.ts index 66eefea..7fdab74 100644 --- a/next.config.ts +++ b/next.config.ts @@ -1,15 +1,27 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { - /* config options here */ - allowedDevOrigins: [ - "10.8.0.2", - "*.local", - "dashboard.cercle-gpt.com", - "*.cercle-gpt.com", - "localhost:3000", - "127.0.0.1:3000", - ], + 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;