Added google maps to CSP

This commit is contained in:
snipe 2020-08-25 20:48:53 -07:00
parent bcad49ce79
commit 32ad9050cf
No known key found for this signature in database
GPG key ID: 10BFFDA3ED34B5AC

View file

@ -106,7 +106,7 @@ class SecurityHeaders
$csp_policy[] = "connect-src 'self'";
$csp_policy[] = "object-src 'none'";
$csp_policy[] = "font-src 'self' data:";
$csp_policy[] = "img-src 'self' data: gravatar.com";
$csp_policy[] = "img-src 'self' data: gravatar.com maps.google.com maps.gstatic.com *.googleapis.com";
$csp_policy = join(';', $csp_policy);
$response->headers->set('Content-Security-Policy', $csp_policy);
}