From 0369d91543e5b5d844e162dc6b5c815cc4459ba9 Mon Sep 17 00:00:00 2001 From: longwind48 Date: Fri, 27 Dec 2024 23:05:25 +0800 Subject: [PATCH] ci: add more origins into cors config --- backend/functions/utils/cors_config.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/backend/functions/utils/cors_config.py b/backend/functions/utils/cors_config.py index 8814a27..b61a154 100644 --- a/backend/functions/utils/cors_config.py +++ b/backend/functions/utils/cors_config.py @@ -6,7 +6,12 @@ # Define allowed origins ALLOWED_ORIGINS = [ "http://localhost:3000", # Local development - "https://schemessg-v3-dev.web.app", # Staging frontend + "https://schemessg-v3-dev.web.app", # dev frontend + "https://schemessg-v3-dev.firebaseapp.com", # dev frontend + "https://schemessg-v3-dev.firebaseapp.com", # dev frontend + "https://staging.schemes.sg", # Production frontend + "https://schemes.firebaseapp.com", # Production frontend + "https://schemes.sg", # Production frontend ]