mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-27 11:20:39 -06:00
Experimental switch of parameters and different urls
This commit is contained in:
parent
987730b36b
commit
925f63c8e1
@ -53,13 +53,13 @@ class SecureHeaders
|
||||
$analyticsId = config('firefly.analytics_id');
|
||||
|
||||
if ('' !== $analyticsId) {
|
||||
$google = 'www.googletagmanager.com/gtag/js https://www.google-analytics.com/analytics.js'; // @codeCoverageIgnore
|
||||
$google = 'https://www.googletagmanager.com/gtag/js https://www.google-analytics.com/analytics.js'; // @codeCoverageIgnore
|
||||
$googleImg = 'https://www.google-analytics.com/';
|
||||
}
|
||||
$csp = [
|
||||
"default-src 'none'",
|
||||
"object-src 'self'",
|
||||
sprintf("script-src 'nonce-%s' 'unsafe-inline' %s", $nonce, $google),
|
||||
sprintf("script-src 'unsafe-inline' %s 'nonce-%s'", $nonce, $google),
|
||||
"style-src 'self' 'unsafe-inline'",
|
||||
"base-uri 'self'",
|
||||
"font-src 'self' data:",
|
||||
|
Loading…
Reference in New Issue
Block a user