Is there a way to disable web security on Electron (chromium)? Via JavaScript or something?
Found it:
new BrowserWindow({webPreferences: {webSecurity: false}});