Fix secure headers for new Google tag.

This commit is contained in:
James Cole
2018-09-10 20:23:43 +02:00
parent 9a34bb7e7a
commit d77112955d

View File

@@ -47,7 +47,7 @@ class SecureHeaders
$google = ''; $google = '';
$analyticsId = env('ANALYTICS_ID', ''); $analyticsId = env('ANALYTICS_ID', '');
if ('' !== $analyticsId) { if ('' !== $analyticsId) {
$google = 'https://www.google-analytics.com/analytics.js'; // @codeCoverageIgnore $google = 'www.googletagmanager.com/gtag/js'; // @codeCoverageIgnore
} }
$csp = [ $csp = [
"default-src 'none'", "default-src 'none'",