BUGFIX: Added referrer policy and frame-ancestors
This commit is contained in:
parent
ce70f7fdbc
commit
95eb634297
@ -40,7 +40,9 @@ class Router
|
||||
|
||||
if ($response instanceof Response) {
|
||||
$response->headers->add([
|
||||
"Content-Security-Policy" => "default-src 'none'; font-src 'self'; style-src 'self'; script-src 'self'; img-src 'self'; require-trusted-types-for 'script'"
|
||||
"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'; ",
|
||||
"Referrer-Policy" => "same-origin"
|
||||
|
||||
]);
|
||||
return $response;
|
||||
} else {
|
||||
|
@ -55,7 +55,7 @@ Encore
|
||||
|
||||
// uncomment to get integrity="..." attributes on your script & link tags
|
||||
// requires WebpackEncoreBundle 1.4 or higher
|
||||
//.enableIntegrityHashes(Encore.isProduction())
|
||||
.enableIntegrityHashes(true)
|
||||
|
||||
// uncomment if you're having problems with a jQuery plugin
|
||||
//.autoProvidejQuery()
|
||||
|
Loading…
Reference in New Issue
Block a user