nelmio_cors: defaults: origin_regex: true allow_origin: ['%env(CORS_ALLOW_ORIGIN)%'] allow_methods: ['GET', 'OPTIONS', 'POST', 'PATCH', 'DELETE'] allow_headers: ['Content-Type', 'Authorization', 'X-CSRF-Token', 'Content-Disposition'] expose_headers: ['X-RateLimit-Limit', 'X-RateLimit-Remaining', 'X-RateLimit-Reset'] max_age: 3600 allow_credentials: false paths: '^/api/': allow_origin: ['%env(CORS_ALLOW_ORIGIN)%'] '^/oauth/': allow_origin: ['%env(CORS_ALLOW_ORIGIN)%'] '^/health': allow_origin: ['%env(CORS_ALLOW_ORIGIN)%']