260312_01_ENH: Error 페이지 및 Redirect 페이지 구현
This commit is contained in:
@@ -13,6 +13,23 @@ const nextConfig: NextConfig = {
|
||||
},
|
||||
];
|
||||
},
|
||||
|
||||
async headers() {
|
||||
return [
|
||||
{
|
||||
source: "/api/external/:path*",
|
||||
headers: [
|
||||
{key: "Access-Control-Allow-Credentials", value: "true"},
|
||||
{key: "Access-Control-Allow-Origin", value: "*"},
|
||||
{key: "Access-Control-Allow-Methods", value: "GET,POST,PUT,PATCH,DELETE"},
|
||||
{
|
||||
key: "Access-Control-Allow-Headers",
|
||||
value: "Content-Type, Authorization, X-Requested-With",
|
||||
},
|
||||
],
|
||||
},
|
||||
]
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
|
||||
Reference in New Issue
Block a user