Content security policy (CSP) reports that seem unrelated to the web app

I’ve setup Content Security Policy (CSP) on a web app. For the time being it’s set to report only so that I can assess it first in production and then turn it on if things get clear. But so far they’re not. I’m getting some odd reports of … Continue reading Content security policy (CSP) reports that seem unrelated to the web app

Why is a domain specified in a CSP default-src being reported as a script-src-elem violation?

I have a Content-Security-Policy-Report-Only: header of:
default-src ‘report-sample’ ‘self’ *.googleapis.com; object-src ‘none’; report-uri https://example.com/csp_logger;

but violations are being reported to my csp_logger endpoint, speci… Continue reading Why is a domain specified in a CSP default-src being reported as a script-src-elem violation?

Is storing authentication tokens in local storage with a strong CSP safe?

Whenever the topic comes up, almost every source recommends to never store authentication tokens in a place where they can be accessed by client-side Javascript. The recommendation is almost always to store them in an http-only cookie to p… Continue reading Is storing authentication tokens in local storage with a strong CSP safe?