Removed unsafe-inline and unsafe-eval

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-03-01 11:44:49 +00:00
parent ad2674d20b
commit 93e69ab0c6

View file

@ -83,8 +83,8 @@ class SecurityHeaders
if ((config('app.debug') != 'true') && (config('app.enable_csp') == 'true')) {
$csp_policy[] = "default-src 'self'";
$csp_policy[] = "style-src 'self' 'unsafe-inline'";
$csp_policy[] = "script-src 'self' 'unsafe-inline' 'unsafe-eval'";
$csp_policy[] = "style-src 'self'";
$csp_policy[] = "script-src 'self'";
$csp_policy[] = "connect-src 'self'";
$csp_policy[] = "object-src 'none'";
$csp_policy[] = "font-src 'self' data:";