Skip to content

Commit

Permalink
Improve nuxt security
Browse files Browse the repository at this point in the history
  • Loading branch information
seh-GAH-toh committed May 12, 2024
1 parent 1242ffc commit f76434c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ export default defineNuxtConfig({
headers: {
crossOriginEmbedderPolicy:
process.env.NODE_ENV === "development" ? "unsafe-none" : "require-corp",
strictTransportSecurity: {
maxAge: 31536000,
includeSubdomains: true,
preload: true,
},
xXSSProtection: "1; mode=block",
},
},
ogImage: {
Expand Down

0 comments on commit f76434c

Please sign in to comment.