From aec160eebf8c2f37c357d88e8209d084d5732925 Mon Sep 17 00:00:00 2001 From: Adam Cohen Hillel Date: Mon, 21 Apr 2025 01:29:57 +0100 Subject: [PATCH] add staging to cors --- backend/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/api.py b/backend/api.py index 84cce089..346ebdb6 100644 --- a/backend/api.py +++ b/backend/api.py @@ -59,7 +59,7 @@ app = FastAPI(lifespan=lifespan) app.add_middleware( CORSMiddleware, - allow_origins=["https://www.suna.so", "https://suna.so", "http://localhost:3000"], + allow_origins=["https://www.suna.so", "https://suna.so", "https://staging.suna.so", "http://localhost:3000"], allow_credentials=True, allow_methods=["GET", "POST", "PUT", "DELETE", "OPTIONS"], allow_headers=["Content-Type", "Authorization"],