Trying to use Sir Trevor JS in Meteor to upload images but getting:
Refused to load the image 'blob:http%3A//localhost%3A3000/a28ef7dc-ee51-4290-9941-6b8fc317e685'
because it violates the following Content Security Policy directive:
"img-src data: 'self' http://*.googleapis.com https://*.googleapis.com
http://*.gstatic.com https://*.gstatic.com http://*.bootstrapcdn.com
https://*.bootstrapcdn.com http://*.facebook.com https://*.facebook.com
http://*.fbcdn-profile-a.akamaihd.net https://*.fbcdn-profile-a.akamaihd.net
blob://*.localhost".
I am using the browser-policy package and don't know how to accept this URL. I tried many different policies but cant get it to work. Examples:
BrowserPolicy.content.allowDataUrl("blob://*.localhost:3000");
BrowserPolicy.content.allowOriginForAll("blob:*.localhost:3000/");
BrowserPolicy.content.allowOriginForAll("blob:*.localhost:3000");
BrowserPolicy.content.allowImgUrlForAll();
BrowserPolicy.content.allowSameOriginForAll();
Any ideas?