From 9b571146d5029db0b032ab45c30605a2b5ed0867 Mon Sep 17 00:00:00 2001 From: avelous Date: Sun, 11 Feb 2024 10:13:34 +0100 Subject: [PATCH] cors policy fix --- packages/backend/index.ts | 2 +- packages/nextjs/server.config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/index.ts b/packages/backend/index.ts index fb844df..581ef12 100644 --- a/packages/backend/index.ts +++ b/packages/backend/index.ts @@ -34,7 +34,7 @@ app.use(bodyParser.json({ limit: "30mb" })); app.use(bodyParser.urlencoded({ limit: "30mb", extended: true })); app.use( cors({ - origin: "http://localhost:3000", + origin: "*", }), ); diff --git a/packages/nextjs/server.config.ts b/packages/nextjs/server.config.ts index b54076e..19c8da0 100644 --- a/packages/nextjs/server.config.ts +++ b/packages/nextjs/server.config.ts @@ -1,7 +1,7 @@ const serverConfig = { isLocal: false, localUrl: "http://localhost:6001", - liveUrl: "https://weak-teal-haddock-sari.cyclic.app", + liveUrl: "https://dice-demonstration-backend.vercel.app", }; export default serverConfig;