Skip to content

Commit 28e05cf

Browse files
Update src/routes/solid-start/guides/security.mdx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent fc9066f commit 28e05cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/routes/solid-start/guides/security.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ It is highly recommended to read the [Cross Site Scripting Prevention Cheat Shee
3838

3939
To configure the `Content-Security-Policy` HTTP header, a [middleware](/solid-start/advanced/middleware) can be used.
4040

41-
If you enforce a strict CSP, configure SolidStart to use JSON serialization mode to avoid `unsafe-eval` requirements. See [defineConfig serialization](/solid-start/reference/config/define-config#serialization).
41+
If you enforce a strict CSP, configure SolidStart to use JSON serialization mode to avoid `unsafe-eval` requirements. See [defineConfig serialization](/solid-start/reference/config/define-config#serialization). Note that `'unsafe-eval'` is only required when using `serialization.mode: "js"`, and the nonce-based CSP example below assumes this mode.
4242

4343
### With nonce (recommended)
4444

0 commit comments

Comments
 (0)