Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .jules/sentinel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## 2024-11-20 - [Missing Security Headers]
**Vulnerability:** The application was missing critical security headers (X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy) in its Cloudflare Pages configuration file `public/_headers`.
**Learning:** Fully static sites deployed via Cloudflare Pages do not automatically get comprehensive security headers. This codebase relies on `public/_headers` to define them, so we must add a `/*` catch-all block to supply headers globally.
**Prevention:** Ensure new Cloudflare Pages projects include a default `public/_headers` file with secure defaults (`X-Frame-Options`, `X-Content-Type-Options`, `Referrer-Policy`, etc.) right from the start.
7 changes: 7 additions & 0 deletions public/_headers
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
Referrer-Policy: strict-origin-when-cross-origin
Permissions-Policy: camera=(), microphone=(), geolocation=()

/.well-known/api-catalog
Content-Type: application/linkset+json
Cache-Control: public, max-age=3600
Expand Down
Loading