bootstrap: disable CSP with css too

pull/88/head
CanadaHonk 2 years ago
parent f425859c93
commit a021777ede

2
src/bootstrap.js vendored

@ -28,7 +28,7 @@ const autoStart = require('./autoStart');
let desktopCore;
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'];
cb(d);
});

Loading…
Cancel
Save