React-native JS Debugger issues with CORS — iOS : <p>I am having an issue with the react-native JS debugger on the iOS. The error occurs when I try to debug my app using the JS Debugger tool. I tried different solutions around the web with no success. Has anyone come across this error and managed to fix it?</p>

<p>Replication:</p>

<p>1) Run development app on real iOS device, which loads the JS bundle from <a href="http://172.16.23.27.xip.io:8081/index.delta?platform=ios&amp;dev=true&amp;minify=false" rel="noreferrer">http://172.16.23.27.xip.io:8081/index.delta?platform=ios&amp;dev=true&amp;minify=false</a></p>

<p>2) Enable JS Remote debug tools, which opens <a href="http://localhost:8081/debugger-ui/" rel="noreferrer">http://localhost:8081/debugger-ui/</a> in Chrome.</p>

<p>3) Bundle reloads, and Chrome DevTools console displays the following error:</p>

<p><strong>Failed to load <a href="http://172.16.23.27.xip.io:8081/index.delta?platform=ios&amp;dev=true&amp;minify=false" rel="noreferrer">http://172.16.23.27.xip.io:8081/index.delta?platform=ios&amp;dev=true&amp;minify=false</a>: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '<a href="http://localhost:8081" rel="noreferrer">http://localhost:8081</a>' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
(index):188 Uncaught (in promise) TypeError: Failed to fetch</strong></p>

<pre><code>"react": "16.2.0",
"react-native": "0.52.1"
</code></pre>
