mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-30 02:26:58 +00:00
Route can be null.
This commit is contained in:
@@ -59,8 +59,9 @@ class SecureHeaders
|
|||||||
"img-src 'self' data: https://api.tiles.mapbox.com",
|
"img-src 'self' data: https://api.tiles.mapbox.com",
|
||||||
"manifest-src 'self'",
|
"manifest-src 'self'",
|
||||||
];
|
];
|
||||||
$route = $request->route()->uri;
|
|
||||||
if($route !== 'oauth/authorize') {
|
$route = $request->route();
|
||||||
|
if (null !== $route && $route->uri !== 'oauth/authorize') {
|
||||||
$csp[] = "form-action 'self'";
|
$csp[] = "form-action 'self'";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user