Update main.py

This commit is contained in:
qiaofeng1227 2023-03-21 10:41:34 +08:00 committed by GitHub
parent 9cde043d43
commit 967171b7f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,8 +22,8 @@ def get_app():
app.add_middleware(
CORSMiddleware,
allow_origins=origins,
allow_credentials=True,
allow_origins=["*"],
allow_credentials=False,
allow_methods=["*"],
allow_headers=["*"],
)