From e915063bc49c13d3be120a66a3002cabd0f4b183 Mon Sep 17 00:00:00 2001 From: Matthew Rowland Date: Tue, 5 Nov 2024 17:05:54 -0800 Subject: [PATCH] feat: Temporarily allow forwarded port for demo --- apps/backend/src/bootstrap/loaders/express.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/backend/src/bootstrap/loaders/express.ts b/apps/backend/src/bootstrap/loaders/express.ts index f368aea22..32b43ba2e 100644 --- a/apps/backend/src/bootstrap/loaders/express.ts +++ b/apps/backend/src/bootstrap/loaders/express.ts @@ -23,7 +23,13 @@ export default async ( app.use( cors({ // Allow requests from the local frontend (should be the only requirement) - origin: [config.url, "http://localhost:8080", "http://localhost:5173"], + origin: [ + config.url, + "http://localhost:8080", + "http://localhost:5173", + // TODO: Remove + "https://gn980r4n-8080.usw3.devtunnels.ms", + ], credentials: true, }) );