Skip to content

feat(rsc): support CSP nonces in document rendering#15320

Open
jacob-ebey wants to merge 2 commits into
mainfrom
rsc_csp
Open

feat(rsc): support CSP nonces in document rendering#15320
jacob-ebey wants to merge 2 commits into
mainfrom
rsc_csp

Conversation

@jacob-ebey

Copy link
Copy Markdown
Member

No description provided.

@github-actions

Copy link
Copy Markdown
Contributor

Preview Build Available

Preview builds have been created for this PR. You can install react-router using:

pnpm install "remix-run/react-router#preview/pr-15320&path:packages/react-router"

And/or install other packages via:

pnpm install "remix-run/react-router#preview/pr-15320&path:packages/react-router-dev"
pnpm install "remix-run/react-router#preview/pr-15320&path:packages/react-router-express"
pnpm install "remix-run/react-router#preview/pr-15320&path:packages/react-router-node"
pnpm install "remix-run/react-router#preview/pr-15320&path:packages/react-router-serve"

These preview builds will be updated automatically as you push new commits.

@github-actions

Copy link
Copy Markdown
Contributor

✅ CLA Signed

Thanks for signing the Contributor License Agreement.

@github-actions

Copy link
Copy Markdown
Contributor

✅ Change File Found

One or more change files found.

Type Change
unstable Add CSP nonce support to RSC document rendering

return renderHTMLToReadableStream(
<RSCStaticRouter getPayload={getPayload} nonce={options.nonce} />,
{
...options,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does options include other things not relevant for renderHTMLToReadableStream? If so, probably better iuf we just make the option explicit:

Suggested change
...options,
nonce: options.nonce,

nonce={options.nonce}
/>,
{
...options,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as below

Suggested change
...options,
nonce: options.nonce,

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