Security Headers

P1 priority p1-is-security-headers

No security headers: CSP, HSTS, COOP, frames

Stage
01-to-do
Author
Ivan Hawkes
Created

No security headers are sent with the pages.

Findings

A review of the published site scores security 0/100, with five high-priority findings:

Deployment Constraint

The site is published to GitHub Pages by .github/workflows/hugo.yml from the publish branch. Pages serves the artifact with headers of its own choosing: the repository cannot attach a Content-Security-Policy, Strict-Transport-Security, Cross-Origin-Opener-Policy or X-Frame-Options response header to a Pages page. Record, before writing any policy, which of the five findings is closable where:

A perfect security score is therefore out of reach while the site is hosted on Pages. State the score that is reachable, and name the hosting change (a host that serves custom headers, e.g. a _headers file on Cloudflare Pages) if that is the decision taken.

Policy Content

Measured on the current build, the policy has to allow exactly this:

Acceptance Criteria