HTTP requests work in dev but not after publishing

#1

I’m developing an app that does a series of HTTP requests to my Heroku backend server. I’m using the xmlHttpRequest() function.

When in dev mode (exp start) and running on my iPhone, everything works correctly. When I publish the project, the xmlHttpRequest() fails.

Any help on debugging or fixing? I’m not sure how to debug after publishing - is this possible? Even a console would help me look at the failure messages.

I’m guessing it’s something to do with some configuration or possibly iOS related. Any ideas? Thanks.

#2

You can run the project with --no-dev --minify to simulate a publish locally. If that reproduces your problem, you can add logs and try to figure out what’s going on then.

1 Like
closed #3

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.