Skip to content

Commit

Permalink
Merge branch 'canary' into handle-invalid-accept-lang
Browse files Browse the repository at this point in the history
  • Loading branch information
kodiakhq[bot] committed Jun 22, 2021
2 parents e5be20d + fc67fc7 commit abca442
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions docs/advanced-features/security-headers.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,18 @@ To improve the security of your application, you can use [`headers`](/docs/api-r

// You can choose which headers to add to the list
// after learning more below.
const securityHeaders = [];

async headers() {
return [
{
// Apply these headers to all routes in your application.
source: '/(.*)',
headers: securityHeaders
}
]
const securityHeaders = []

module.exports = {
async headers() {
return [
{
// Apply these headers to all routes in your application.
source: '/(.*)',
headers: securityHeaders,
},
]
},
}
```

Expand Down

0 comments on commit abca442

Please sign in to comment.