mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
parent
fa394c8895
commit
4c3139224e
@ -51,7 +51,11 @@ class Csp
|
|||||||
throw new RuntimeException('No nonce set for CSS');
|
throw new RuntimeException('No nonce set for CSS');
|
||||||
}
|
}
|
||||||
|
|
||||||
$response->setHeader('Content-Security-Policy', "style-src 'self' 'nonce-$csp->styleNonce';", true);
|
$response->setHeader(
|
||||||
|
'Content-Security-Policy',
|
||||||
|
"script-src 'self'; style-src 'self' 'nonce-$csp->styleNonce';",
|
||||||
|
true
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user