Can anyone help me figure out how to use Sir Trevor JS in Meteor for uploading images without encountering this error message?
When attempting to load the image 'blob:http%3A//localhost%3A3000/a28ef7dc-ee51-4290-9941-6b8fc317e685', I am receiving an error due to Content Security Policy restrictions. The directive being violated includes sources such as 'self', various googleapis.com URLs, bootstrapcdn.com URLs, facebook.com and fbcdn-profile-a.akamaihd.net. It also mentions a restriction on blob://*.localhost.
I have installed the browser-policy package but have been unable to find a policy that allows this particular URL. I have tried multiple configurations, including:
BrowserPolicy.content.allowDataUrl("blob://*.localhost:3000");
BrowserPolicy.content.allowOriginForAll("blob:*.localhost:3000/");
BrowserPolicy.content.allowOriginForAll("blob:*.localhost:3000");
BrowserPolicy.content.allowImgUrlForAll();
BrowserPolicy.content.allowSameOriginForAll();
If you have any insights or suggestions, please let me know!