mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -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",
|
"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'";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user