Is there a way to disable web security on Electron (chromium)? Via JavaScript or something?
Is there a way to disable web security on Electron (chromium)? Via JavaScript or something?
mainWindow = new BrowserWindow({
height: 563,
useContentSize: true,
width: 1000,
webPreferences: { webSecurity: false }
})
import { app, BrowserWindow } from 'electron'
mainWindow = new BrowserWindow({
height: 563,
useContentSize: true,
width: 1000,
webPreferences: { webSecurity: false }
})
This is the solution, and it works for me.