# Content Security Policy for images

**URL:** <https://forum.ionicframework.com/t/content-security-policy-for-images/67177>\
**Category:** ionic-v1\
**Created:** [October 17, 2016, 5:30am UTC](https://forum.ionicframework.com/t/content-security-policy-for-images/67177 "2016-10-17T05:30:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anicacute09](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/anicacute09/32/113162_2.png) [@anicacute09](https://forum.ionicframework.com/u/anicacute09)\
**Post date:** [October 17, 2016, 5:30am UTC](https://forum.ionicframework.com/t/content-security-policy-for-images/67177/1 "2016-10-17T05:30:41Z")

</div>

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](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:

---

<div class="post-metadata">

**Author:** ![anicacute09](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/anicacute09/32/113162_2.png) [@anicacute09](https://forum.ionicframework.com/u/anicacute09)\
**Post date:** [October 17, 2016, 6:09am UTC](https://forum.ionicframework.com/t/content-security-policy-for-images/67177/2 "2016-10-17T06:09:36Z")

</div>

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