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:
Claude 2026-06-22 00:08:28 +00:00
parent d087e0a5a1
commit 4e8b321ef8

View file

@ -79,7 +79,7 @@ app = FastAPI(title="Fitness Rewards", version="1.0.0", lifespan=lifespan)
app.add_middleware( app.add_middleware(
CORSMiddleware, CORSMiddleware,
allow_origins=["*"], 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_methods=["*"],
allow_headers=["*"], allow_headers=["*"],
) )