From 648aebed097fdb62c3d1e53e29c9f707aa55436d Mon Sep 17 00:00:00 2001 From: Jan-Felix Date: Thu, 2 Jan 2025 11:45:52 +0100 Subject: [PATCH] fix cors issue --- packages/app/next.config.js | 10 +--------- packages/deployments/package.json | 2 +- packages/sdk/package.json | 2 +- packages/subgraph/package.json | 2 +- 4 files changed, 4 insertions(+), 12 deletions(-) diff --git a/packages/app/next.config.js b/packages/app/next.config.js index 482cc4e24..32aff3a1d 100644 --- a/packages/app/next.config.js +++ b/packages/app/next.config.js @@ -22,15 +22,7 @@ const nextConfig = { }, { source: "/api/permissions", - headers: [ - { key: "Access-Control-Allow-Credentials", value: "true" }, - { key: "Access-Control-Allow-Origin", value: "*" }, - { key: "Access-Control-Allow-Methods", value: "GET" }, - { - key: "Access-Control-Allow-Headers", - value: "X-Requested-With, content-type, Authorization", - }, - ], + headers: [{ key: "Access-Control-Allow-Origin", value: "*" }], }, ] }, diff --git a/packages/deployments/package.json b/packages/deployments/package.json index d848da048..ba95308f8 100644 --- a/packages/deployments/package.json +++ b/packages/deployments/package.json @@ -28,4 +28,4 @@ "installConfig": { "hoistingLimits": "workspaces" } -} \ No newline at end of file +} diff --git a/packages/sdk/package.json b/packages/sdk/package.json index 5dc143929..b919b7d17 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -108,4 +108,4 @@ "installConfig": { "hoistingLimits": "workspaces" } -} \ No newline at end of file +} diff --git a/packages/subgraph/package.json b/packages/subgraph/package.json index 1acb812f5..205f4149e 100644 --- a/packages/subgraph/package.json +++ b/packages/subgraph/package.json @@ -43,4 +43,4 @@ "installConfig": { "hoistingLimits": "workspaces" } -} \ No newline at end of file +}