Skip to content

Commit

Permalink
chore: use base64 encoded uuid
Browse files Browse the repository at this point in the history
Signed-off-by: Logan McAnsh <logan@mcan.sh>
  • Loading branch information
mcansh committed Dec 1, 2023
1 parent a6837d0 commit 8a4c657
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 @@ -106,7 +106,7 @@ function applySecurityHeaders(responseHeaders: Headers) {
responseHeaders.set("Cache-Control", "no-cache");
}

let nonce = crypto.randomBytes(16).toString("base64");
let nonce = Buffer.from(crypto.randomUUID()).toString("base64");
let securityHeaders = createSecureHeaders({
"Content-Security-Policy": {
upgradeInsecureRequests: process.env.NODE_ENV === "production",
Expand Down

0 comments on commit 8a4c657

Please sign in to comment.