mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Disable almost all things.
This commit is contained in:
parent
e458208966
commit
3e12d26afd
@ -51,19 +51,17 @@ class SecureHeaders
|
||||
$response = $next($request);
|
||||
$trackingScriptSrc = $this->getTrackingScriptSource();
|
||||
$csp = [
|
||||
"default-src 'none'",
|
||||
"object-src 'self'",
|
||||
sprintf("script-src 'unsafe-inline' 'nonce-%1s' %2s 'strict-dynamic'", $nonce, $trackingScriptSrc),
|
||||
"style-src 'unsafe-inline' 'self'",
|
||||
"frame-ancestors 'none'",
|
||||
"base-uri 'self'",
|
||||
"font-src 'self' data:",
|
||||
"connect-src 'self'",
|
||||
sprintf(
|
||||
"img-src 'self' data: https://a.tile.openstreetmap.org https://b.tile.openstreetmap.org https://c.tile.openstreetmap.org https://api.tiles.mapbox.com %s",
|
||||
$trackingScriptSrc
|
||||
),
|
||||
"manifest-src 'self'",
|
||||
// "default-src 'none'",
|
||||
// "object-src 'none'",
|
||||
// "require-trusted-types-for 'script'",
|
||||
// sprintf("script-src 'unsafe-inline' 'strict-dynamic' 'nonce-%1s' %2s", $nonce, $trackingScriptSrc),
|
||||
// "style-src 'unsafe-inline' 'self'",
|
||||
// "frame-ancestors 'none'",
|
||||
// "base-uri 'self'",
|
||||
// "font-src 'self' data:",
|
||||
// "connect-src 'self'",
|
||||
// sprintf("img-src 'self' data: https://a.tile.openstreetmap.org https://b.tile.openstreetmap.org https://c.tile.openstreetmap.org https://api.tiles.mapbox.com %s", $trackingScriptSrc),
|
||||
// "manifest-src 'self'",
|
||||
];
|
||||
|
||||
$route = $request->route();
|
||||
|
Loading…
Reference in New Issue
Block a user