Skip to content

Commit

Permalink
Update security-headers doc (#41312)
Browse files Browse the repository at this point in the history
<!--
Thanks for opening a PR! Your contribution is much appreciated.
To make sure your PR is handled as smoothly as possible we request that
you follow the checklist sections below.
Choose the right checklist for the change that you're making:
-->

## Documentation / Examples

- [ ] Make sure the linting passes by running `pnpm lint`
- [ ] The "examples guidelines" are followed from [our contributing
doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)

Just fixing an error in the documentation where the text doesn't match
what the code snippet is doing.

Co-authored-by: JJ Kasper <jj@jjsweb.site>
  • Loading branch information
MariaSolOs and ijjk committed Oct 11, 2022
1 parent acb46e1 commit 1ca80a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/advanced-features/security-headers.md
Expand Up @@ -130,9 +130,9 @@ const ContentSecurityPolicy = `

When a directive uses a keyword such as `self`, wrap it in single quotes `''`.

In the header's value, replace the new line with an empty string.
In the header's value, replace the new line with a space.

```jsx
```js
{
key: 'Content-Security-Policy',
value: ContentSecurityPolicy.replace(/\s{2,}/g, ' ').trim()
Expand Down

0 comments on commit 1ca80a5

Please sign in to comment.