Skip to content

Commit

Permalink
[docs] fix syntax error in CSP code example.
Browse files Browse the repository at this point in the history
  • Loading branch information
Karlinator committed Sep 10, 2021
1 parent 24b7c62 commit 8efd8af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/docs/14-content-security-policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ However, SvelteKit also requires some small pieces of inline JavaScript in order
The nonce value is availiable to hooks as `request.locals.nonce`. A basic CSP handler hook might then look like this:

```javascript
export async function handle ({ request, resolve }) => {
export async function handle ({ request, resolve }) {
const directives = {
'default-src': ["'self'", 'static.someotherdomain.com'],
'script-src': ["'strict-dynamic'"],
Expand Down

0 comments on commit 8efd8af

Please sign in to comment.