Skip to content

Commit 30ec817

Browse files
authored
fix(netlify): fix GIT_SUBMODULE_STRATEGY indent + add security headers (#220)
Updated security headers and added strict transport security. Signed-off-by: Igor <romanchaa997@gmail.com>
1 parent 6170b54 commit 30ec817

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

netlify.toml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
NODE_VERSION = "18"
77
GIT_LFS_ENABLED = "false"
88
PNPM_FLAGS = "--no-frozen-lockfile"
9-
GIT_SUBMODULE_STRATEGY = "none"
9+
GIT_SUBMODULE_STRATEGY = "none"
1010

1111
# Build settings with correct pnpm commands
1212
[context.production]
@@ -27,12 +27,8 @@
2727
for = "/*"
2828
[headers.values]
2929
X-Frame-Options = "DENY"
30-
X-XSS-Protection = "1; mode=block"
3130
X-Content-Type-Options = "nosniff"
3231
Referrer-Policy = "strict-origin-when-cross-origin"
33-
Content-Security-Policy = "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' data: https:; img-src 'self' data: https:; font-src 'self' data:; connect-src 'self' https:;"
34-
35-
[[headers]]
36-
for = "/assets/*"
37-
[headers.values]
38-
Cache-Control = "public, max-age=31536000, immutable"
32+
Content-Security-Policy = "default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:; connect-src 'self' https:"
33+
Permissions-Policy = "camera=(), microphone=(), geolocation=()"
34+
Strict-Transport-Security = "max-age=31536000; includeSubDomains; preload"

0 commit comments

Comments
 (0)