Skip to content

Conversation

@rossabaker
Copy link
Member

Implements a few suggestions from webbkoll to improve privacy and security:

  • The Content-Security-Policy restricts where various kinds of subresources may be sourced from. Think of it as an allowlist. This is more useful if we were rendering content that wasn't reviewed in advance (e.g., comments), but it makes clear who we trust, and gave us a chance to consolidate that in the case of MathJax.

  • Adds hashes to our stylesheets and CSS. The browser will refuse to load them if the contents change. Which, since they're versioned, is probably real bad if they do.

  • The referer policy instructs browsers not to leak trackable information when following links off our site.

@rossabaker rossabaker merged commit f8acb44 into main Jan 9, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants