Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49084

HTTP/S does not work in Android release build

$
0
0

@shiziluosidao wrote:

Hey guys,

I built an app using the $http service which works nice in debug mode.
However, when I build a release and run it on Android none of the requests work (neither HTTP nor HTTPS).
What I did so far:

  1. whitelist plugin reinstalled
  2. put into config.xml: <access origin="*" subdomains="true" /><allow-navigation href="https://*/*" /><allow-navigation href="data:*" />
  3. added to index.html: <meta http-equiv="Content-Security-Policy" content="default-src 'self' https: ; style-src 'self' 'unsafe-inline'; script-src 'self' https: 'unsafe-inline' 'unsafe-eval' ">
  4. Added ng-csp to <body> tag
  5. made sure the HTTPS works fine (via ssllabs.com)

What could I have missed? Spent lots of time reading and trying, but no success to this point :-/

Shi

Posts: 4

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 49084

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>