Skip to content

Commit

Permalink
docs: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
atilafassina committed Oct 31, 2024
1 parent 0b651a7 commit ab1de9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ The CSP must add `nonce` on every request and append to script and link tags.
```diff
import { createHandler, StartServer } from "@solidjs/start/server";

export default createHandler(
export default createHandler(
() => (
<StartServer
document={({ assets, children, scripts }) => (
Expand Down Expand Up @@ -61,6 +61,7 @@ The CSP must add `nonce` on every request and append to script and link tags.
),
-
+ (event) => ({ nonce: `nonce-${event.locals.nonce}` })
)
```

## Contributors
Expand Down

0 comments on commit ab1de9e

Please sign in to comment.