Is it Safe to Update Content Security Policy to Allow Blob URLs for iframes?

I am currently implementing a feature that allows users to upload documents (mainly pdfs) and view them in the browser without storing them on a server. The application generates a blob URL from the uploaded document, which is then passed … Continue reading Is it Safe to Update Content Security Policy to Allow Blob URLs for iframes?

Is it Safe to Update Content Security Policy to Allow Blob URLs for iframes?

I am currently implementing a feature that allows users to upload documents (mainly pdfs) and view them in the browser without storing them on a server. The application generates a blob URL from the uploaded document, which is then passed … Continue reading Is it Safe to Update Content Security Policy to Allow Blob URLs for iframes?

If I’m using HSTS, can I skip the scheme from my CSP directives?

For various reasons, I need to shrink my CSP header a bit without degrading its effectiveness. I’m able to save some bytes by wildcarding some subdomains, but I’m also tempted to strip out all instances of https://.
Example:
connect-src ‘s… Continue reading If I’m using HSTS, can I skip the scheme from my CSP directives?