@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:
- whitelist plugin reinstalled
- put into config.xml:
<access origin="*" subdomains="true" /><allow-navigation href="https://*/*" /><allow-navigation href="data:*" />
- 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' ">
- Added
ng-csp
to<body>
tag- 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