Skip to content

fix(start): apply nonce to generated client entry - #311

Merged
birkskyum merged 1 commit into
solidjs:nextfrom
birkskyum:csp-nonce-client-entry
Aug 19, 2026
Merged

fix(start): apply nonce to generated client entry#311
birkskyum merged 1 commit into
solidjs:nextfrom
birkskyum:csp-nonce-client-entry

Conversation

@birkskyum

Copy link
Copy Markdown
Member

Summary

  • pass options.nonce into the HTML head transform
  • apply an escaped nonce to the generated client-entry script
  • cover nonce propagation and attribute escaping in the production fixture
  • add a patch changeset

Ports the SPA entry portion of solidjs/solid-start@d8f1ea8 (solid-start#2252). The streaming-redirect portion is already handled by @solidjs/web.

Testing

  • pnpm build
  • pnpm check
  • node test/run.mjs prod (52/52 assertions)

@changeset-bot

changeset-bot Bot commented Aug 19, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8be0b92

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@solidjs/vite-plugin Patch

Not sure what this means? Click here to learn what changesets are.

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

@pkg-pr-new

pkg-pr-new Bot commented Aug 19, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@solidjs/vite-plugin@311

commit: 8be0b92

@birkskyum
birkskyum merged commit c8615ed into solidjs:next Aug 19, 2026
6 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.

1 participant