We are working with Atom Shell (Currently known as electron) to wrap a web application as desktop app and having trouble making cross domain ajax calls due to CORS restriction.
Solutions' updated syntax:
var BrowserWindow = require('browser-window'); var win = new BrowserWindow({ webPreferences: {webSecurity: false} });