电子(铬)禁用网络安全
问题描述:
有没有办法禁用Electron(铬)上的网络安全性?
是通过JavaScript还是其他东西?
Is there a way to disable web security on Electron (chromium)? Via JavaScript or something?
答
找到了它:
new BrowserWindow({webPreferences: {webSecurity: false}});