diff --git a/AgentCompany-New/src/main/index.ts b/AgentCompany-New/src/main/index.ts index a2742a28..779fdbf6 100644 --- a/AgentCompany-New/src/main/index.ts +++ b/AgentCompany-New/src/main/index.ts @@ -1,4 +1,4 @@ -import { app, session } from "electron"; +import { app } from "electron"; import { dirname, join } from "node:path"; import { fileURLToPath } from "node:url"; import { DatabaseConnection } from "./database/connection"; @@ -13,22 +13,6 @@ if (!hasSingleInstanceLock) { } app.whenReady().then(() => { - session.defaultSession.webRequest.onHeadersReceived((details, callback) => { - callback({ - responseHeaders: { - ...details.responseHeaders, - "Content-Security-Policy": [ - "default-src 'self'", - "script-src 'self'", - "style-src 'self' 'unsafe-inline'", - "img-src 'self' data:", - "connect-src 'self' http://localhost:* ws://localhost:*", - "font-src 'self' data:", - ].join("; "), - }, - }); - }); - const profileDir = process.env.AGENTCOMPANY_NEW_PROFILE_DIR ?? join(app.getPath("userData"), "profile"); const connection = new DatabaseConnection(join(profileDir, "agentcompany.db")); const win = createMainWindow({ diff --git a/AgentCompany-New/src/renderer/index.html b/AgentCompany-New/src/renderer/index.html index 64d9113d..89017642 100644 --- a/AgentCompany-New/src/renderer/index.html +++ b/AgentCompany-New/src/renderer/index.html @@ -4,7 +4,7 @@ AgentCompany