Skip to content

Commit

Permalink
Adds opctim/symfony-csp-bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Nelles committed Apr 24, 2024
1 parent 8cba886 commit 97b0a6d
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
opctim_csp_bundle:
# See vendor/opctim/symfony-csp-bundle/README.md for more details.
always_add: []

# https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP
directives: &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:
<<: *directives
# Add your overrides here
9 changes: 9 additions & 0 deletions opctim/symfony-csp-bundle/1.0/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"bundles": {
"Opctim\\CspBundle\\OpctimCspBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"aliases": ["csp"]
}

0 comments on commit 97b0a6d

Please sign in to comment.