mirror of
https://github.com/vee1e/bulk-questionnaire-upload.git
synced 2026-09-01 09:50:06 +00:00
fix: set allow_credentials=False to fix CORS with wildcard origin
allow_credentials=True + allow_origins=["*"] is invalid per the CORS spec. Starlette drops the Access-Control-Allow-Origin header in this case. The API uses no cookies so credentials are not needed. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
336b6c2659
commit
fc74d0b539
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ else:
|
|||
app.add_middleware(
|
||||
CORSMiddleware,
|
||||
allow_origins=allow_origins,
|
||||
allow_credentials=True,
|
||||
allow_credentials=False,
|
||||
allow_methods=["*"],
|
||||
allow_headers=["*"],
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue