Skip to content

Commit 71a108e

Browse files
authored
Second phase of HSTS header settings (supabase#33857)
apply second phase of hsts header settings
1 parent 4bb66e8 commit 71a108e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

apps/docs/next.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const nextConfig = {
7474
headers: [
7575
{
7676
key: 'Strict-Transport-Security',
77-
value: process.env.VERCEL === '1' ? 'max-age=31536000' : '',
77+
value: process.env.VERCEL === '1' ? 'max-age=1200; includeSubDomains' : '',
7878
},
7979
{
8080
key: 'X-Robots-Tag',
@@ -97,7 +97,7 @@ const nextConfig = {
9797
headers: [
9898
{
9999
key: 'Strict-Transport-Security',
100-
value: process.env.VERCEL === '1' ? 'max-age=31536000' : '',
100+
value: process.env.VERCEL === '1' ? 'max-age=1200; includeSubDomains' : '',
101101
},
102102
{
103103
key: 'X-Robots-Tag',

apps/studio/next.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ const nextConfig = {
494494
key: 'Strict-Transport-Security',
495495
value:
496496
process.env.NEXT_PUBLIC_IS_PLATFORM === 'true' && process.env.VERCEL === '1'
497-
? 'max-age=31536000'
497+
? 'max-age=1200; includeSubDomains'
498498
: '',
499499
},
500500
{

apps/www/next.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const nextConfig = {
8484
source: "/(.*)",
8585
headers: [{
8686
key: 'Strict-Transport-Security',
87-
value: process.env.NEXT_PUBLIC_IS_PLATFORM === 'true' && process.env.VERCEL === '1' ? 'max-age=31536000' : '' }],
87+
value: process.env.NEXT_PUBLIC_IS_PLATFORM === 'true' && process.env.VERCEL === '1' ? 'max-age=1200; includeSubDomains' : '' }],
8888
},
8989
]
9090
},

0 commit comments

Comments
 (0)