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

Content Security Policy for images

$
0
0

@anicacute09 wrote:

Hi guys, I am having problems with csp, I am using cordova camera plugin for getting/taking images from camera and gallery. But when I use DATA_URL(base64) it is not displaying, if I use FILE_URI it works well. I try to change the meta tags for csp and now it works well unfortunately the images I get from the cloud like https://www.image.jpg are not displaying now.. What should i do to fix this problem?

PS: these are my csp:

Displaying image from camera/gallery:

My old csp that works with cloud images displaying:

https://maps.googleapis.com/ https://maps.gstatic.com/ https://mts0.googleapis.com/ https://mts1.googleapis.com/'unsafe-inline' 'unsafe-eval'; media-src *">

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49188

Trending Articles



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