Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Privacy improvements #539

Merged
merged 4 commits into from
Jan 9, 2025
Merged

Privacy improvements #539

merged 4 commits into from
Jan 9, 2025

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.

2 participants