Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Content security policy

$
0
0

Hi

I installed the plugin cordova-plugin-whitelist (I don't really know why, I think because I saw some solution to an error in the forum :wink: ).

And I have that in my config.xml:

  <access origin="*"/>
  <allow-navigation href="*"/>

When I run my app on Android, I have this "Content-Security-Policy" error. But if I add this to my index.html

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

then I get 404 erros when trying to access various things in my app.

I am confused, can you clarify this to me please ?


Viewing all articles
Browse latest Browse all 228595

Trending Articles



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