Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Electron (chromium) disable web security

Is there a way to disable web security on Electron (chromium)? Via JavaScript or something?

like image 414
user2493164 Avatar asked Mar 07 '16 19:03

user2493164


1 Answers

Found it:

new BrowserWindow({webPreferences: {webSecurity: false}});
like image 140
user2493164 Avatar answered Sep 29 '22 05:09

user2493164