mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-03 20:57:19 -06:00
Ignore form action when doing oAuth2.
This commit is contained in:
parent
cec8210d8b
commit
20b458f35d
@ -54,12 +54,15 @@ class SecureHeaders
|
||||
sprintf("script-src 'self' 'unsafe-eval' 'unsafe-inline' %s", $google),
|
||||
"style-src 'self' 'unsafe-inline'",
|
||||
"base-uri 'self'",
|
||||
"form-action 'self'",
|
||||
"font-src 'self'",
|
||||
"connect-src 'self'",
|
||||
"img-src 'self' data: https://api.tiles.mapbox.com",
|
||||
"manifest-src 'self'",
|
||||
];
|
||||
$route = $request->route()->uri;
|
||||
if($route !== 'oauth/authorize') {
|
||||
$csp[] = "form-action 'self'";
|
||||
}
|
||||
|
||||
$featurePolicies = [
|
||||
"geolocation 'none'",
|
||||
|
Loading…
Reference in New Issue
Block a user