nelmio_cors: defaults: allow_credentials: true allow_origin: ['%env(CORS_ALLOW_ORIGIN)%'] allow_headers: ['Content-Type', 'Authorization', 'X-Requested-With'] expose_headers: ['Authorization'] allow_methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'] max_age: 3600 paths: '^/': ~