Skip to content

Commit

Permalink
fix: update all paths on /api to allow CORS (#1858)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryscheng authored Jul 27, 2024
1 parent b7620a0 commit 9bb10e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/frontend/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ const nextConfig = {
return [
{
// matching all API routes
//source: "/api/:path*",
source: "/api/graphql",
source: "/api/:path*",
//source: "/api/v1/graphql",
headers: [
{ key: "Access-Control-Allow-Credentials", value: "true" },
{ key: "Access-Control-Allow-Origin", value: "*" }, // replace this your actual origin
Expand Down

0 comments on commit 9bb10e2

Please sign in to comment.