From 72ffb5cb3e467ef216919284f15a291194693b78 Mon Sep 17 00:00:00 2001 From: ji-mmyliu Date: Wed, 6 Nov 2024 20:26:21 -0500 Subject: [PATCH] Update CORS options to allow frontend staging by Firebase --- backend/server.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/server.ts b/backend/server.ts index f1df001..d36336d 100644 --- a/backend/server.ts +++ b/backend/server.ts @@ -22,9 +22,9 @@ import courseRouter from "./rest/courseRoutes"; const CORS_ALLOW_LIST = [ "http://localhost:3000", - "https://uw-blueprint-starter-code.firebaseapp.com", - "https://uw-blueprint-starter-code.web.app", - /^https:\/\/uw-blueprint-starter-code--pr.*\.web\.app$/, + "https://extendafamily-7613e.firebaseapp.com", + "https://extendafamily-7613e.web.app", + /^https:\/\/extendafamily-7613e--pr.*\.web\.app$/, ]; const CORS_OPTIONS: cors.CorsOptions = {