From 28b04b49feeadb17ce4939bb78749458dcd1d363 Mon Sep 17 00:00:00 2001 From: Moritz Eck Date: Mon, 6 Jan 2025 22:01:43 +0100 Subject: [PATCH] docs: update README - secureHeaders/nonce usage - related honojs/vite-plugins/#201 --- README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index e34eed7..b32c00e 100644 --- a/README.md +++ b/README.md @@ -326,11 +326,9 @@ import { createRoute } from 'honox/factory' import { secureHeaders, NONCE } from 'hono/secure-headers' secureHeaders({ - contentSecurityPolicy: import.meta.env.PROD - ? { - scriptSrc: [NONCE], - } - : undefined, + contentSecurityPolicy: { + scriptSrc: [NONCE] + } }) ```