From 2ef54fe31de1db9ba16912d66fe5449334bb3876 Mon Sep 17 00:00:00 2001 From: Spencer Elliott Date: Fri, 21 Aug 2015 20:19:31 -0400 Subject: [PATCH] Enable Chrome '--disable-web-security' flag. This allows users to inspect network requests in Chrome by commenting the xhr polyfill in InitializeJavaScriptAppEngine.js: https://github.com/facebook/react-native/issues/934#issuecomment-94525104 --- packager/packager.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packager/packager.js b/packager/packager.js index 0f93a3306fd033..f30c55aff4ac70 100644 --- a/packager/packager.js +++ b/packager/packager.js @@ -207,6 +207,7 @@ function getDevToolsLauncher(options) { } launch(debuggerURL, { browser: 'chrome', + options: ['--disable-web-security'], }, function(err, instance) { if (err) { console.error('Failed to launch chrome', err);