Merge branch 'addCSP' into 'develop'
Add CSP instructions See merge request ldc-web/projets/doux!12
This commit is contained in:
commit
316cdf3e03
1 changed files with 11 additions and 2 deletions
|
|
@ -46,10 +46,19 @@ class SecureHeaders
|
|||
// "default-src 'none';",
|
||||
"manifest-src 'self';",
|
||||
"connect-src 'self' blob: " . \implode(' ', [
|
||||
'https://*.google-analytics.com',
|
||||
'https://*.analytics.google.com',
|
||||
'https://*.googletagmanager.com',
|
||||
'https://*.analytics.google.com'
|
||||
'https://*.g.doubleclick.net',
|
||||
'https://*.google.com',
|
||||
]) . ';',
|
||||
"img-src * data: blob: " . \implode(' ', [
|
||||
'https://*.google-analytics.com',
|
||||
'https://*.analytics.google.com',
|
||||
'https://*.googletagmanager.com',
|
||||
'https://*.g.doubleclick.net',
|
||||
'https://*.google.com',
|
||||
]) . ';',
|
||||
"img-src * https://*.googletagmanager.com data: blob:;",
|
||||
'frame-src ' . implode(' ', [
|
||||
'https://www.google.com/recaptcha/',
|
||||
'https://recaptcha.google.com/recaptcha/',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue