Fix: SyntaxError in main.py — comma after allow_credentials=False
The SEC-06 replacement swallowed the trailing comma into the comment: allow_credentials=False # comment, ← comma in comment Fixed to: allow_credentials=False, # comment ← comma after value
This commit is contained in:
parent
d087e0a5a1
commit
4e8b321ef8
1 changed files with 1 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ app = FastAPI(title="Fitness Rewards", version="1.0.0", lifespan=lifespan)
|
|||
app.add_middleware(
|
||||
CORSMiddleware,
|
||||
allow_origins=["*"],
|
||||
allow_credentials=False # Bearer tokens don't need credentials mode,
|
||||
allow_credentials=False, # Bearer tokens don't need credentials mode
|
||||
allow_methods=["*"],
|
||||
allow_headers=["*"],
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue