Skip to content

Commit 9502d92

Browse files
authored
document transition CSP caveat (#5556)
* document transition CSP caveat (#5215) * Update documentation/docs/15-configuration.md
1 parent bde443d commit 9502d92

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

documentation/docs/15-configuration.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ When pages are prerendered, the CSP header is added via a `<meta http-equiv>` ta
154154

155155
> When `mode` is `'auto'`, SvelteKit will use nonces for dynamically rendered pages and hashes for prerendered pages. Using nonces with prerendered pages is insecure and therefore forbidden.
156156
157+
> Note that most [Svelte transitions](https://svelte.dev/tutorial/transition) work by creating an inline `<style>` element. If you use these in your app, you must either leave the `style-src` directive unspecified or add `unsafe-inline`.
158+
157159
### moduleExtensions
158160

159161
An array of file extensions that SvelteKit will treat as modules. Files with extensions that match neither `config.extensions` nor `config.kit.moduleExtensions` will be ignored by the router.

0 commit comments

Comments
 (0)