Merge branch 'issue-13-csp-style' into 'develop'
fix: Added 'https://cdn.jsdelivr.net' to style-src csp See merge request ldc-web/projets/doux!28
This commit is contained in:
commit
e9331bd63d
1 changed files with 5 additions and 1 deletions
|
|
@ -54,7 +54,11 @@ class SecureHeaders
|
|||
// "font-src 'self' data:;",
|
||||
// ! Using CKEditor will must have unsafe-inline style
|
||||
// phpcs:ignore Generic.Files.LineLength.TooLong
|
||||
"style-src 'self' 'unsafe-inline';",
|
||||
'style-src ' . implode(" ", [
|
||||
'\'self\'',
|
||||
'\'unsafe-inline\'',
|
||||
'https://cdn.jsdelivr.net',
|
||||
]) . ';',
|
||||
// ! If you dont use ckeditor use this
|
||||
// "style-src 'self' 'nonce-$nonce';",
|
||||
// phpcs:ignore Generic.Files.LineLength.TooLong
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue