explicitly set CORSMiddleware options

This commit is contained in:
agatha 2024-04-13 19:40:20 -04:00
parent bcf4dd27b7
commit 051c1a1441

View File

@ -12,7 +12,9 @@ app = FastAPI(docs_url=None, redoc_url=None)
app.add_middleware( app.add_middleware(
CORSMiddleware, CORSMiddleware,
allow_origins=["*"], allow_origins=["*"],
allow_methods=["GET"] allow_credentials=False,
allow_methods=["GET"],
allow_headers=["*"]
) )