Not sure if this is even possible, but here goes:
stage.foo.com/graphql
react-native run-android
localhost:8081
foo
has excellent infra and security, they've setup CORS to block all requests originating from localhost
.local.foo.com
for just such an occasion.
local.foo.com
redirects back to localhost
local.foo.com/graphql
, it points to the endpoint I wantlocal.foo.com:8081/debugger-ui
(the remote-debugging URL), it correctly connects to the Metro Bundler service that's running there.So after all this, here's my question:
locahost:8081
local.foo.com:8081
instead?Note: This is not a problem with the application code, I need some way to change the source that the application hits when it's looking for the Metro Bundler service.
In Emulator / Simulator to open Dev settings you can use the command CTRL + M. Make sure it's not Release build (not Signed APK)