Skip to content

Commit

Permalink
fix nonce error with remix dev server (#774)
Browse files Browse the repository at this point in the history
  • Loading branch information
zwhitchcox authored Jun 18, 2024
1 parent 606ce73 commit b31a457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/entry.server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default async function handleRequest(...args: DocRequestArgs) {
? 'onAllReady'
: 'onShellReady'

const nonce = String(loadContext.cspNonce) ?? undefined
const nonce = loadContext.cspNonce?.toString() ?? ''
return new Promise(async (resolve, reject) => {
let didError = false
// NOTE: this timing will only include things that are rendered in the shell
Expand Down

0 comments on commit b31a457

Please sign in to comment.