bootstrap: disable CSP with css too
This commit is contained in:
parent
f425859c93
commit
a021777ede
|
@ -28,7 +28,7 @@ const autoStart = require('./autoStart');
|
||||||
|
|
||||||
let desktopCore;
|
let desktopCore;
|
||||||
const startCore = () => {
|
const startCore = () => {
|
||||||
if (oaConfig.js) session.defaultSession.webRequest.onHeadersReceived((d, cb) => {
|
if (oaConfig.js || oaConfig.css) session.defaultSession.webRequest.onHeadersReceived((d, cb) => {
|
||||||
delete d.responseHeaders['content-security-policy'];
|
delete d.responseHeaders['content-security-policy'];
|
||||||
cb(d);
|
cb(d);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue