From 9bb10e23584f983a524260b9e36be2068fdcfed2 Mon Sep 17 00:00:00 2001 From: Raymond Cheng Date: Sat, 27 Jul 2024 11:27:36 -0700 Subject: [PATCH] fix: update all paths on /api to allow CORS (#1858) --- apps/frontend/next.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/frontend/next.config.js b/apps/frontend/next.config.js index 7c26a8a5a..8ecbe81f0 100644 --- a/apps/frontend/next.config.js +++ b/apps/frontend/next.config.js @@ -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