mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-11-10 07:39:24 +08:00
ALLOWED_HOSTS defaults to ["*"] and the CORS middleware always set allow_credentials=True. Starlette echoes any request Origin with Access-Control-Allow-Credentials in that combination, which lets every site make credentialed cross-origin calls. resolve_cors_policy now returns credentials=False for wildcard origins and keeps credentials only when explicit origins are configured. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>