mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-12 07:36:34 +03:00
63 lines
2.6 KiB
JSON
63 lines
2.6 KiB
JSON
{
|
|
"manifests": {
|
|
"opctim/symfony-csp-bundle": {
|
|
"manifest": {
|
|
"copy-from-recipe": {
|
|
"config/": "%CONFIG_DIR%/"
|
|
},
|
|
"bundles": {
|
|
"Opctim\\CspBundle\\OpctimCspBundle": [
|
|
"all"
|
|
]
|
|
}
|
|
},
|
|
"files": {
|
|
"config/packages/opctim_csp_bundle.yaml": {
|
|
"contents": [
|
|
"opctim_csp_bundle:",
|
|
" # See https://github.com/opctim/symfony-csp-bundle?tab=readme-ov-file#the-always_add-option",
|
|
" always_add: []",
|
|
"",
|
|
" # See https://github.com/opctim/symfony-csp-bundle?tab=readme-ov-file#the-report-option",
|
|
" report:",
|
|
" url: null",
|
|
" route: null",
|
|
" route_params: []",
|
|
" chance: 100",
|
|
"",
|
|
" # https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP",
|
|
" # See https://github.com/opctim/symfony-csp-bundle?tab=readme-ov-file#configuration",
|
|
" directives:",
|
|
" default-src:",
|
|
" - \"'self'\"",
|
|
" - 'data:'",
|
|
" - 'https:'",
|
|
" base-uri:",
|
|
" - \"'self'\"",
|
|
" object-src:",
|
|
" - \"'none'\"",
|
|
" script-src:",
|
|
" - \"'self'\"",
|
|
" img-src:",
|
|
" - \"'self'\"",
|
|
" style-src:",
|
|
" - \"'self'\"",
|
|
" - \"'unsafe-inline'\"",
|
|
"",
|
|
"# For different set-ups in the dev environment",
|
|
"when@dev:",
|
|
" opctim_csp_bundle:",
|
|
" # always_add: []",
|
|
"",
|
|
" directives:",
|
|
" # Add your directive overrides here",
|
|
""
|
|
],
|
|
"executable": false
|
|
}
|
|
},
|
|
"ref": "46a06fd8f88cb2b462fdd95215dbbd3b7aec61f0"
|
|
}
|
|
}
|
|
}
|