explicitly set CORSMiddleware options
This commit is contained in:
parent
bcf4dd27b7
commit
051c1a1441
@ -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=["*"]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user