From 051c1a14418e8344e0acca0b3ebac9bf33075591 Mon Sep 17 00:00:00 2001 From: agatha Date: Sat, 13 Apr 2024 19:40:20 -0400 Subject: [PATCH] explicitly set CORSMiddleware options --- server/src/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/src/main.py b/server/src/main.py index 27706e4..5c25873 100644 --- a/server/src/main.py +++ b/server/src/main.py @@ -12,7 +12,9 @@ app = FastAPI(docs_url=None, redoc_url=None) app.add_middleware( CORSMiddleware, allow_origins=["*"], - allow_methods=["GET"] + allow_credentials=False, + allow_methods=["GET"], + allow_headers=["*"] )