1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-08 05:57:02 +09:00
This commit is contained in:
Andrew Simachev 2023-12-09 14:59:46 +01:00
commit d2906a9466
No known key found for this signature in database
GPG key ID: 49A163D0D14E6FD8
230 changed files with 3676 additions and 1372 deletions

View file

@ -22,17 +22,12 @@ const WindowManager = require('./electron/js/window.js');
const Server = require('./electron/js/server.js');
const Util = require('./electron/js/util.js');
const csp = [
`default-src 'self' 'unsafe-eval' blob: http://localhost:*`,
`img-src 'self' http://*:* https://*:* data: blob: file://*`,
`media-src 'self' http://*:* https://*:* data: blob: file://*`,
`style-src 'unsafe-inline' http://localhost:* file://*`,
`font-src data: file://* http://localhost:*`,
`connect-src file://* http://localhost:* http://127.0.0.1:* ws://localhost:* https://*.anytype.io https://api.amplitude.com/ devtools://devtools data:`,
`script-src-elem file: http://localhost:* https://sentry.io devtools://devtools 'unsafe-inline'`,
`frame-src chrome-extension://react-developer-tools`,
`worker-src 'self' 'unsafe-eval' blob: http://localhost:*`,
];
const Cors = require('./electron/json/cors.json');
const csp = [];
for (let i in Cors) {
csp.push([ i ].concat(Cors[i]).join(' '));
};
app.commandLine.appendSwitch('ignore-connections-limit', 'localhost, 127.0.0.1');
app.removeAsDefaultProtocolClient(protocol);