Skip to content

Commit

Permalink
fix: improve HSTS settings
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Cao <70191398+ryanccn@users.noreply.github.com>
  • Loading branch information
ryanccn committed Jan 25, 2024
1 parent d358386 commit 59030b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ const csp = `

const securityHeaders = [
{
key: "X-DNS-Prefetch-Control",
value: "on",
key: "Strict-Transport-Security",
value: "max-age=63072000; includeSubDomains; preload",
},
{
key: "Strict-Transport-Security",
value: "max-age=63072000",
key: "X-DNS-Prefetch-Control",
value: "off",
},
{
key: "X-XSS-Protection",
Expand Down

0 comments on commit 59030b9

Please sign in to comment.