fix: sync allow_methods с main — добавить HEAD и OPTIONS

This commit is contained in:
Gros Frumos 2026-03-21 09:33:53 +02:00
parent 6d5d84a882
commit 283ff61dc5

View file

@ -120,7 +120,7 @@ app = FastAPI(lifespan=lifespan)
app.add_middleware(
CORSMiddleware,
allow_origins=[config.FRONTEND_ORIGIN],
allow_methods=["GET", "POST"],
allow_methods=["GET", "HEAD", "OPTIONS", "POST"],
allow_headers=["Content-Type", "Authorization"],
)