Skip to content

docs: Add a CSP page #17744#17840

Open
raamas wants to merge 3 commits intosveltejs:mainfrom
raamas:patch-1
Open

docs: Add a CSP page #17744#17840
raamas wants to merge 3 commits intosveltejs:mainfrom
raamas:patch-1

Conversation

@raamas
Copy link

@raamas raamas commented Mar 2, 2026

This adds documentation page about Content Security Policy under Misc. Feedback is appreciated.

raamas and others added 3 commits March 2, 2026 07:57
Removed the section on CSP and nonce usage for hydratable scripts, including code examples for both nonce and hash methods.
@changeset-bot
Copy link

changeset-bot bot commented Mar 2, 2026

⚠️ No Changeset found

Latest commit: c07f0a0

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@svelte-docs-bot
Copy link

@raamas raamas closed this Mar 2, 2026
@raamas raamas reopened this Mar 2, 2026
@raamas raamas mentioned this pull request Mar 2, 2026
@teemingc
Copy link
Member

teemingc commented Mar 2, 2026

We will probably need to make a change to the blog post link on svelte.dev to avoid this build error too:

Error: The following pages contain links to /docs/svelte/hydratable#CSP, but no element with id="CSP" exists on /docs/svelte/hydratable - see the `handleMissingId` option in https://svelte.dev/docs/kit/configuration#prerender for more info:
  - /blog/whats-new-in-svelte-january-2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants