$http-call-fails-while-deployed-in-windows-10-uwp RRS feed

  • Question

  • I have created an Ionic1 app for windows 10 UWP. Basically data stored locally from application using SQLite database and saved details will be moved to live server once the application connected to internet.

    We use ASP.NET MVC WebAPI for handing live database related works. The problem here is ajax call (XmlHttpRequest) failed to webapi while deploying the app into device and it is working fine while debugging in browser.

    While running, "ionic serve", it is working perfectly in all browsers including "Edge".

    While running "ionic run windows --uap --archs=x86", ajax call fails. ( I build the application using "ionic build windows --uap --archs=x86")

    Content Security Policy included in index.html: < meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'"' />

    allow-navigation config.xml: '< allow-navigation href="http:////" / >'

    Can any one please help me out from this issue ? (I'm banging my head for this nearly 4 days and trying all possible solutions which I found in any of the forums)

    Thanks in advance.

    Saturday, February 11, 2017 7:09 AM

All replies

  • Ajax call to online site fails with "Network Error 0x2eff". Can any one suggest me any possible solution to fix this?

    Monday, February 13, 2017 5:18 AM