mirror of
https://github.com/symfony/recipes.git
synced 2026-09-11 23:26:27 +03:00
39 lines
1.4 KiB
JSON
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"
|
|
}
|
|
}
|
|
}
|