How can I connect Quasar-Cordova ios app to the existing tomcat service at local computer?



  • The Quasar works fine for SPA at localhost:port# hosted by tomcat.

    To test the mobile app, I ran the “quasar dev -m cordova -T ios” with my iphone connected with my laptop through USB, the app was installed and also opened with the index.html. The problem is I cannot connect it to the tomcat backend running @ localhost:port#, when I make a post or get request.

    The config.xml is like this:

    <?xml version=‘1.0’ encoding=‘utf-8’?>
    <widget id=“com.xprotocol.quasar.app” version=“1.0.0” xmlns=“http://www.w3.org/ns/widgets” xmlns:cdv=“http://cordova.apache.org/ns/1.0”>
    <name>Quasar App</name>
    <description>A Quasar App</description>
    <author email="dev@cordova.apache.org" href=“http://cordova.io”>
    Apache Cordova Team
    </author>
    <content src=“index.html” />
    <access origin="" />
    <allow-intent href="http://
    /" />
    <allow-intent href="https://
    /" />
    <allow-intent href="tel:
    " />
    <allow-intent href=“sms:" />
    <allow-intent href="mailto:
    ” />
    <allow-intent href=“geo:" />
    <platform name=“android”>
    <allow-intent href="market:
    ” />
    </platform>
    <platform name=“ios”>
    <allow-intent href=“itms:" />
    <allow-intent href="itms-apps:
    ” />
    </platform>
    <plugin name=“cordova-plugin-whitelist” spec="^1.3.3" />
    <engine name=“ios” spec="^4.5.4" />
    </widget>

    What steps I need to take to make it work?

    Thanks a lot.