Add CSP execptions rules for cookies

This commit is contained in:
Sebastien Hattry 2023-10-24 16:11:24 +02:00
parent 6e01470b5c
commit 8668c6a38c

View file

@ -56,8 +56,9 @@ class SecureHeaders
// * VITE DEV
config('app.debug') ? "wss://vite.{$host}:4443" : '',
config('app.debug') ? "https://vite.{$host}:4443" : '',
'https://yl.s-web.fr',
]) . ';',
"img-src * data: blob:;",
"img-src * https://yl.s-web.fr data: blob:;",
'frame-src ' . implode(' ', [
'https://www.google.com/recaptcha/',
'https://recaptcha.google.com/recaptcha/',
@ -89,6 +90,9 @@ class SecureHeaders
config('app.debug') ? "https://vite.{$host}:4443" : '',
'https://www.googletagmanager.com',
'https://cdnjs.cloudflare.com',
'https://www.google.com/recaptcha/',
'https://www.gstatic.com/recaptcha/',
'https://yl.s-web.fr',
"$scheme://www.google-analytics.com",
]) . ';'
];