mercredi 2 septembre 2015

Content security policy error for android-image selection in ember-cordova app

in my ember-cordova app, am getting following error, while adding image from android devise

Refused to load the image 'content://media/external/images/media/609' because it violates the following Content Security Policy directive: "img-src 'self' data: http://ift.tt/1JyuRrC content://media/external/images".

I have following in config/environment file:

contentSecurityPolicy: {
  "img-src": "'self' data: http://ift.tt/1JyuRrC",
  "style-src": "'self' 'unsafe-inline' http://ift.tt/1HwyfW6",
  "font-src": "'self' data: http://ift.tt/1HwyfW6"
},

I tried with adding content://media/external/images/ in above block, but still facing error. I might not be adding it properly. Can anyone please help me here?

Thanks in advance.

Aucun commentaire:

Enregistrer un commentaire