Skip to content

Commit

Permalink
fix(fe): /api/(.*), *
Browse files Browse the repository at this point in the history
  • Loading branch information
ryong9rrr committed Mar 29, 2024
1 parent 267ee86 commit b1db374
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
},
],
},
Expand Down

0 comments on commit b1db374

Please sign in to comment.