Files
symfony-flex-recipes/nelmio.cors-bundle.1.5.json
T
github-action botandgithub-action bot d66972e1ac Update Flex endpoint
2021-09-23 15:02:48 +00:00

39 lines
1.4 KiB
JSON

{
"manifests": {
"nelmio/cors-bundle": {
"manifest": {
"bundles": {
"Nelmio\\CorsBundle\\NelmioCorsBundle": [
"all"
]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"CORS_ALLOW_ORIGIN": "'^https?://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?$'"
}
},
"files": {
"config/packages/nelmio_cors.yaml": {
"contents": [
"nelmio_cors:",
" defaults:",
" origin_regex: true",
" allow_origin: ['%env(CORS_ALLOW_ORIGIN)%']",
" allow_methods: ['GET', 'OPTIONS', 'POST', 'PUT', 'PATCH', 'DELETE']",
" allow_headers: ['Content-Type', 'Authorization']",
" expose_headers: ['Link']",
" max_age: 3600",
" paths:",
" '^/': null",
""
],
"executable": false
}
},
"ref": "6bea22e6c564fba3a1391615cada1437d0bde39c"
}
}
}