mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-03 20:57:19 -06:00
Route can be null.
This commit is contained in:
parent
e482b079df
commit
968505ac0e
@ -59,8 +59,9 @@ class SecureHeaders
|
||||
"img-src 'self' data: https://api.tiles.mapbox.com",
|
||||
"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'";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user