mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-17 19:23:26 +00:00
取消 Content-Security-Policy
This commit is contained in:
parent
e500426f8f
commit
9a9d19e16c
@ -225,7 +225,7 @@
|
|||||||
|
|
||||||
if (mxIsElectron)
|
if (mxIsElectron)
|
||||||
{
|
{
|
||||||
mxmeta(null, 'default-src \'self\' \'unsafe-inline\'; connect-src \'self\' https://*.draw.io https://fonts.googleapis.com https://fonts.gstatic.com; img-src * data:; media-src *; font-src *; style-src-elem \'self\' \'unsafe-inline\' https://fonts.googleapis.com', 'Content-Security-Policy');
|
// mxmeta(null, 'default-src \'self\' \'unsafe-inline\'; connect-src \'self\' https://*.draw.io https://fonts.googleapis.com https://fonts.gstatic.com; img-src * data:; media-src *; font-src *; style-src-elem \'self\' \'unsafe-inline\' https://fonts.googleapis.com', 'Content-Security-Policy');
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
|||||||
26
docker/drawio/webapp/js/diagramly/ElectronApp.js
vendored
26
docker/drawio/webapp/js/diagramly/ElectronApp.js
vendored
@ -183,19 +183,19 @@ mxStencilRegistry.allowEval = false;
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Remove old relaxed CSP and add strict one
|
//Remove old relaxed CSP and add strict one
|
||||||
var allMeta = document.getElementsByTagName('meta');
|
// var allMeta = document.getElementsByTagName('meta');
|
||||||
|
//
|
||||||
for (var i = 0; i < allMeta.length; i++)
|
// for (var i = 0; i < allMeta.length; i++)
|
||||||
{
|
// {
|
||||||
if (allMeta[i].getAttribute('http-equiv') == 'Content-Security-Policy')
|
// if (allMeta[i].getAttribute('http-equiv') == 'Content-Security-Policy')
|
||||||
{
|
// {
|
||||||
allMeta[i].parentNode.removeChild(allMeta[i]);
|
// allMeta[i].parentNode.removeChild(allMeta[i]);
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
break;
|
// break;
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
mxmeta(null, 'default-src \'self\'; connect-src \'self\' https://fonts.googleapis.com https://fonts.gstatic.com; img-src * data:; media-src *; font-src *; style-src \'self\' \'unsafe-inline\' https://fonts.googleapis.com', 'Content-Security-Policy');
|
// mxmeta(null, 'default-src \'self\'; connect-src \'self\' https://fonts.googleapis.com https://fonts.gstatic.com; img-src * data:; media-src *; font-src *; style-src \'self\' \'unsafe-inline\' https://fonts.googleapis.com', 'Content-Security-Policy');
|
||||||
|
|
||||||
//Disable web plugins loading
|
//Disable web plugins loading
|
||||||
urlParams['plugins'] = '0';
|
urlParams['plugins'] = '0';
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
Subproject commit 519581b2116cb3ba69860a80496e63339ff43416
|
Subproject commit c359714220dd630c0b93ca2c1ee65c30eeb8dbbc
|
||||||
Loading…
x
Reference in New Issue
Block a user