From c1bd6dca05ad7df92a4be48dc48afd279c82d649 Mon Sep 17 00:00:00 2001 From: Jan-Felix Date: Mon, 23 Dec 2024 13:24:43 +0100 Subject: [PATCH] wip --- packages/app/next.config.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/app/next.config.js b/packages/app/next.config.js index 193799ed6..482cc4e24 100644 --- a/packages/app/next.config.js +++ b/packages/app/next.config.js @@ -20,6 +20,18 @@ 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", + }, + ], + }, ] }, }