We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
nonce
entry.server.tsx
Following the remix docs, if we implement csp we need to pass the nonce to the renderToPipeableStream but this is not currently possible
See supporting remix docs
Allow to pass a nonce param in the handleRequest eg
handleRequest
export default async function (request: Request, responseStatusCode: number, responseHeaders: Headers, remixContext: EntryContext) { const nonce = crypto.randomUUID() const remixServer = <RemixServer context={remixContext} url={request.url} nonce={nonce} /> return handleRequest(request, responseStatusCode, responseHeaders, remixServer, nonce) }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Why
Following the remix docs, if we implement csp we need to pass the
nonce
to the renderToPipeableStream but this is not currently possibleSee supporting remix docs
Solution
Allow to pass a
nonce
param in thehandleRequest
egThe text was updated successfully, but these errors were encountered: