mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 21:21:27 +00:00
add 'worker-src blob:' to csp rule
This commit is contained in:
parent
e6cc38cb22
commit
488b274048
|
@ -54,8 +54,9 @@ class SeedDMS_Bootstrap_Style extends SeedDMS_View_Common {
|
||||||
* since version 25+
|
* since version 25+
|
||||||
* X-Content-Security-Policy is deprecated, Firefox understands
|
* X-Content-Security-Policy is deprecated, Firefox understands
|
||||||
* Content-Security-Policy since version 23+
|
* Content-Security-Policy since version 23+
|
||||||
|
* 'worker-src blob:' is needed for cytoscape
|
||||||
*/
|
*/
|
||||||
$csp_rules = "script-src 'self' 'unsafe-eval';"; // style-src 'self';";
|
$csp_rules = "script-src 'self' 'unsafe-eval'; worker-src blob:;"; // style-src 'self';";
|
||||||
foreach (array("X-WebKit-CSP", "X-Content-Security-Policy", "Content-Security-Policy") as $csp) {
|
foreach (array("X-WebKit-CSP", "X-Content-Security-Policy", "Content-Security-Policy") as $csp) {
|
||||||
header($csp . ": " . $csp_rules);
|
header($csp . ": " . $csp_rules);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user