Update secure header with vite config form base project

This commit is contained in:
Jérémy Munsch 2023-12-22 11:23:25 +01:00
parent 8949c3b427
commit 8318e83d0b
No known key found for this signature in database
GPG key ID: 18361AF3BFEC0FEC

View file

@ -59,7 +59,10 @@ class SecureHeaders
config('app.debug') ? "https://{$host}:4443" : '',
'https://yl.s-web.fr',
]) . ';',
"img-src * https://yl.s-web.fr data: blob:;",
"img-src 'self' data: blob: " . implode(' ', [
// * VITE DEV
config('app.debug') ? "https://{$host}:4443" : ''
]) . ';',
'frame-src ' . implode(' ', [
'https://www.google.com/recaptcha/',
'https://recaptcha.google.com/recaptcha/',