Hi all,
I'm having troubles logging into my Rollbase Mobile application (not the webapp). When I click the Design button in my Rollbase application configuration page, everything works fine. The designer authenticates correctly, and I am able to design my mobile application.
While testing the mobile application using the Test button in the designer, I get the following error when I try logging into the mobile application:
HTTP Status 0: Failed to log in. Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://[private-cloud-url]:8080/rest/mobile/api/static/home.html'. status (from jqXHT) :0 statusText (from jqXHT) :
Logging into the "default" rollbase application works fine.
Rollbase version: 3.0.4 (private cloud)
Did you check if it is a CORS issue? The Appdesigner URL is https. Your private URL is http.
Hello,
I just wanted to share a post from the Mobile forum describing this issue:
community.progress.com/.../13569.aspx
In Google Chrome, you can use click on the shield icon to workaround the issue.
Please notice that if you use the command line option, then it applies to any web site that you access. This might be a security issue if you use Google Chrome as your main web browser.
I hope this helps.
Have you checked the file 'components.xml' ( under ROLLBASE_HOME/config directory ) if the 'REST' component is configured on port 8080 ?
Thanks.
Thanks for your suggestion.
Yes, this is configured.
Did you check if it is a CORS issue? The Appdesigner URL is https. Your private URL is http.
Olistudent, it indeed was a CORS issue. In the developer console of my browser, in this case Chrome, there was a message which confirmed this. The solution I used to fix this, is to start chrome with the --allow-running-insecure-content argument:
chrome.exe --allow-running-insecure-content
If I build the app to - for example - an .apk, everything works fine. So it seems that this problem only occurs in the designer. Another suggestion would be downloading this plugin, which adds the allow-control-allow-origin attribute to the request header:
https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi/related
I also found another thread of someone having a similar issue:
https://community.progress.com/community_groups/rollbase/f/25/t/10994.aspx
Hello,
I just wanted to share a post from the Mobile forum describing this issue:
community.progress.com/.../13569.aspx
In Google Chrome, you can use click on the shield icon to workaround the issue.
Please notice that if you use the command line option, then it applies to any web site that you access. This might be a security issue if you use Google Chrome as your main web browser.
I hope this helps.