mirror of
https://git.code.sf.net/p/seeddms/code
synced 2026-01-30 05:00:42 +00:00
allow CSP worker-src blob:
This commit is contained in:
parent
820b88c9cf
commit
3e2931068e
|
|
@ -54,12 +54,13 @@ class SeedDMS_Bootstrap_Style extends SeedDMS_View_Common {
|
|||
/* We still need unsafe-eval, because printDocumentChooserHtml and
|
||||
* printFolderChooserHtml will include a javascript file with ajax
|
||||
* which is evaled by jquery
|
||||
* worker-src blob: is needed for cytoscape
|
||||
* X-WebKit-CSP is deprecated, Chrome understands Content-Security-Policy
|
||||
* since version 25+
|
||||
* X-Content-Security-Policy is deprecated, Firefox understands
|
||||
* Content-Security-Policy since version 23+
|
||||
*/
|
||||
$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) {
|
||||
header($csp . ": " . $csp_rules);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user