From b1db3748d885fdd90931ab439cfc06ddd2f2bd3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9A=A9=EC=83=81=EC=9C=A4?= Date: Fri, 29 Mar 2024 17:26:40 +0900 Subject: [PATCH] fix(fe): /api/(.*), * --- frontend/next.config.mjs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/next.config.mjs b/frontend/next.config.mjs index 3c361c2c..5600091e 100644 --- a/frontend/next.config.mjs +++ b/frontend/next.config.mjs @@ -6,12 +6,12 @@ const nextConfig = { return [ { // matching all API routes - source: "/api/:path*", + source: "/api/(.*)", headers: [ - { key: "Access-Control-Allow-Credentials", value: "true" }, + //{ key: "Access-Control-Allow-Credentials", value: "true" }, { key: "Access-Control-Allow-Origin", - value: "http://j10a710.p.ssafy.io", + value: "*", }, // replace this your actual origin { key: "Access-Control-Allow-Methods", @@ -20,7 +20,7 @@ const nextConfig = { { key: "Access-Control-Allow-Headers", value: - "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version", + "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version, Authorization", }, ], },