Skip to content

Commit 2faf5f1

Browse files
authored
Use Strict-Transport-Security includeSubDomains; preload (#9050)
1 parent bf33f21 commit 2faf5f1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/lib/shared/handler_helpers.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ shelf.Handler _httpsWrapper(shelf.Handler handler) {
274274
rs = rs.change(
275275
headers: {
276276
'strict-transport-security':
277-
'max-age=${_hstsDuration.inSeconds}; preload',
277+
'max-age=${_hstsDuration.inSeconds}; includeSubDomains; preload',
278278
},
279279
);
280280
}

pkg/image_proxy/lib/image_proxy_service.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Map<String, String> securityHeaders = {
3030
'X-Content-Type-Options': 'nosniff',
3131
'Content-Security-Policy':
3232
"default-src 'none'; img-src data:; style-src 'unsafe-inline'",
33-
'Strict-Transport-Security': 'max-age=31536000; includeSubDomains',
33+
'Strict-Transport-Security': 'max-age=31536000; includeSubDomains; preload',
3434
};
3535

3636
/// Ensure that [allowedKeys] contains keys for today and the two surrounding

0 commit comments

Comments
 (0)