Skip to content

Add CSP #7990

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Add CSP #7990

wants to merge 3 commits into from

Conversation

maxammann
Copy link
Contributor

@maxammann maxammann commented Aug 6, 2025

    1. By default, only allow scripts from the same origin.
    2. Allow inline styles and styles from the same origin. This is how we use CSS rightnow.
    3. Allow images from any source and inline images. We fetch user profile images from any origin.
    4. Allow scripts from the same origin and from Plausible Analytics. Allow WASM execution.
    5. Allow WebSocket connections and fetches to our API.

So far this has been tested on localhost.

@maxammann maxammann requested a review from a team as a code owner August 6, 2025 13:00
Copy link

vercel bot commented Aug 6, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
modeling-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 7, 2025 10:15am

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