About

Tool No. 43 of Pikkola

A content policy is a list of refusals, written in one header. It is the only defence a page has that still works when a script it did not expect has already reached the browser. This page writes that list, reads one you already sent, and says what the difference costs.

What it does

What the grade means

It is this studio's own summary, not a standard. The weights are written into the page: a bare * in script-src costs 25, a missing base-uri costs 4, and each finding says what it took away, so the number can be argued with instead of trusted. Security header checkers on the web weigh the same facts differently, and a policy that scores A+ here may score A elsewhere for reasons that are in the text of both pages.

Two points are treated the way the specification treats them. 'unsafe-inline' next to a nonce, a hash or 'strict-dynamic' is ignored by browsers, so it is a note rather than a fault. A directive without a source is dropped by the browser, so an empty one is not a restriction.

What it deliberately does not do

Why it is free

Pikkola builds small tools that do one job and keeps them free, with no account and no advertising. A static page that computes in the browser costs almost nothing to serve, so there is no reason to charge for it.

Contact

A policy that is graded wrongly, a phrase that reads badly in Korean or Japanese, an output format that should be here and is not: hello@pikkola.com. Send the policy and what you expected to see.

Back to the studio