first commit
This commit is contained in:
@@ -1,15 +1,27 @@
|
|||||||
import type { NextConfig } from "next";
|
import type { NextConfig } from "next";
|
||||||
|
|
||||||
const nextConfig: NextConfig = {
|
const nextConfig: NextConfig = {
|
||||||
/* config options here */
|
async headers() {
|
||||||
allowedDevOrigins: [
|
return [
|
||||||
"10.8.0.2",
|
{
|
||||||
"*.local",
|
source: "/api/:path*",
|
||||||
"dashboard.cercle-gpt.com",
|
headers: [
|
||||||
"*.cercle-gpt.com",
|
{
|
||||||
"localhost:3000",
|
key: "Access-Control-Allow-Origin",
|
||||||
"127.0.0.1:3000",
|
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;
|
export default nextConfig;
|
||||||
|
|||||||
Reference in New Issue
Block a user