iOS client: Window.location.origin is http://meteor.local


I’m trying out building my app for the ios platform for the first time. One thing I am having trouble with is that after I build my ios app and run it on my ios device, the client shows that window.location.origin is set to http://meteor.local. I am building the app with this command:

meteor run ios-device --mobile-server 

Is there a way to make sure that window.location.origin is equal to the mobile-server url on the ios client?


Is it an option for you to use Meteor.absoluteUrl() instead?


That was just what I needed. And I learn something new everyday. Thanks @sashko