Since today, my mobile apps are not able to connect to my local development server any more. The app starts up, but as soon as I try to login (which triggers a socksjs call), the login dialog gets stuck.
On Android, I’m getting the following message:
XMLHttpRequest cannot load http://192.168.2.102/sockjs/info?cb=_ompx91vso. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://meteor.local' is therefore not allowed access. The response had HTTP status code 404.
iOS fails silently.
I’ve noticed that the IP address of my Mac has changed, so I had to adapt the --mobile-server option accordingly. And I also did an upgrade to Android M in the meantime, but as iOS is affected as well, I don’t think its related to that.
On iOS, I’ve already set the Allow Arbitrary Loads option which prevented connectivity earlier. But this did not help.
I also checked the config.xml file, and the access origin settings include these lines:
<access origin="http://meteor.local/*"/> <access origin="*://192.168.2.102/*"/>
So I would assume that the origins are set correctly.
But despite of that, nothing works. Any ideas why the connection is broken now and how to fix that?