BUGFIX: CSP for forms
This commit is contained in:
parent
339c364910
commit
ba4d0a414b
@ -40,7 +40,7 @@ class Router
|
|||||||
|
|
||||||
if ($response instanceof Response) {
|
if ($response instanceof Response) {
|
||||||
$response->headers->add([
|
$response->headers->add([
|
||||||
"Content-Security-Policy" => "default-src 'none'; font-src 'self'; style-src 'self'; script-src 'self'; img-src 'self'; frame-ancestors 'none'; require-trusted-types-for 'script'; base-uri 'none'; ",
|
"Content-Security-Policy" => "default-src 'none'; font-src 'self'; style-src 'self'; script-src 'self'; img-src 'self'; form-action 'none'; frame-ancestors 'none'; require-trusted-types-for 'script'; base-uri 'none'; ",
|
||||||
"Referrer-Policy" => "same-origin"
|
"Referrer-Policy" => "same-origin"
|
||||||
|
|
||||||
]);
|
]);
|
||||||
|
Loading…
Reference in New Issue
Block a user