Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Cordova whitelist plugin not working

$
0
0

@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.14

Cordova Version
6.0.0

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



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