Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/mmanela/chutzpah
Browse files Browse the repository at this point in the history
  • Loading branch information
mmanela committed Jan 25, 2020
2 parents b21cf9d + ff0ad1c commit 20b7d3d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Chutzpah/ChutzpahJSRunners/Chrome/chutzpahRunner.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,12 @@ module.exports.runner = async (onInitialized, onPageLoaded, isFrameworkLoaded, o
chutzpahFunctions.rawLog("!!_!! Using Chrome Install : " + chromeExecutable);
debugLog("Launch Chrome (" + chromeExecutable + "): Elevated= " + isRunningElevated);

// Disable CORS by default
var launchBrowserArges = ["--disable-web-security"];
// If isRunningElevated, we need to turn off sandbox since it does not work with admin users
var launchBrowserArges = isRunningElevated ? ["--no-sandbox"] : [];
if (isRunningElevated) {
launchBrowserArges.push("--no-sandbox");
}
if (browserArgs) {
launchBrowserArges.push(...browserArgs.trim().split(" "));
}
Expand Down

0 comments on commit 20b7d3d

Please sign in to comment.