@MohammedSalah wrote:
Hello,
i added whitelist plugins but it's not working with me
ionic plugin add https://github.com/apache/cordova-plugin-whitelist.git
index.html head
<meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'">
Config.xml
<gap:plugin name="cordova-plugin-whitelist" source="npm" /> <access origin="*"/> <allow-intent href="*" /> <allow-navigation href="*" /> <allow-navigation href="data:*" />
Consol Error
XMLHttpRequest cannot load HTTP://WEBSITE.COM. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access.
Ionic Version
1.7.14Cordova Version
6.0.0
Posts: 1
Participants: 1