bootstrap: disable CSP with css too
This commit is contained in:
parent
f425859c93
commit
a021777ede
1 changed files with 1 additions and 1 deletions
2
src/bootstrap.js
vendored
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…
Add table
Add a link
Reference in a new issue