Skip to content

Remove CORS from this service

yassine sabir a demandé de fusionner bugFix/Remove-Cors vers develop

Code

  • app/main.py – Removed setup_cors import and call
  • app/security.py – Removed setup_cors, CORS middleware, and ALLOWED_ORIGINS import; added note that CORS is handled by the gateway
  • app/config.py – Removed ALLOWED_ORIGINS

Configuration

  • .env – Removed ALLOWED_ORIGINS
  • docker-compose.yml – Removed ALLOWED_ORIGINS env var

Tests

  • tests/test_endpoints.py – Removed test_cors_headers

Rapports de requête de fusion