Content Security Policy for images


#1

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:


#2

sorry for the dumb question I already fix it with adding * and data: to img-src to my second csp…