Skip to content

Commit

Permalink
docs: update README - secureHeaders/nonce usage - related honojs/vite…
Browse files Browse the repository at this point in the history
…-plugins/#201 (#248)
  • Loading branch information
meck93 authored Jan 8, 2025
1 parent e20b347 commit 28bef05
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}
})
```

Expand Down

0 comments on commit 28bef05

Please sign in to comment.