Update CORS configuration to allow all origins

This commit is contained in:
Automated Action 2025-05-30 20:58:08 +00:00
parent a6f3c5a7b8
commit b6ff3679e1

View File

@ -23,8 +23,8 @@ app = FastAPI(
# CORS middleware setup
app.add_middleware(
CORSMiddleware,
allow_origins=[str(origin) for origin in settings.BACKEND_CORS_ORIGINS],
allow_credentials=True,
allow_origins=["*"], # Allow all origins
allow_credentials=False, # Must be False when using wildcard origins
allow_methods=["*"], # Allows all methods
allow_headers=["*"], # Allows all headers
)