mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 05:04:07 -08:00
Merge pull request #8365 from snipe/fixes/8338_google_maps_CSP
Fixed #8338 - Added google maps to CSP
This commit is contained in:
commit
37568ae9ec
|
@ -106,7 +106,7 @@ class SecurityHeaders
|
||||||
$csp_policy[] = "connect-src 'self'";
|
$csp_policy[] = "connect-src 'self'";
|
||||||
$csp_policy[] = "object-src 'none'";
|
$csp_policy[] = "object-src 'none'";
|
||||||
$csp_policy[] = "font-src 'self' data:";
|
$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);
|
$csp_policy = join(';', $csp_policy);
|
||||||
$response->headers->set('Content-Security-Policy', $csp_policy);
|
$response->headers->set('Content-Security-Policy', $csp_policy);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue