@Hawkeye wrote:
Hi,
I realise this is not completely Ionic related but I'm wondering if anyone can help me out here as I'm going slightly crazy.
I am using ng-file-upload to allow the user to select an image or video from their phone. However I keep getting the following error. No combination of content-security-policy entries seems to work apart from if I add '*' to image-src and connect-src
Error:
Refused to load the image 'blob:null/eca5cf55-4440-4ddc-8fcb-94cca13ac663' because it violates the following Content Security Policy directive: "img-src 'self' https: blob: data:".CSP:
content="default-src * gap:; object-src 'self' blob:; connect-src 'self' blob: wss: https://*/*; img-src 'self' https: blob: data:; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline'"If anyone can help I would be very appreciative.
Thanks
Posts: 1
Participants: 1