Skip to content
This repository was archived by the owner on Jun 11, 2022. It is now read-only.

Commit 2bbc821

Browse files
authored
📚 HSTS usage details
1 parent ea2acbc commit 2bbc821

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,11 @@ Enforce secure connections by automatically redirecting insecure requests to **h
227227
}
228228
```
229229

230-
Prevent downgrade attacks with [HTTP strict transport security](https://developer.mozilla.org/en-US/docs/Web/Security/HTTP_strict_transport_security). Add HSTS `"headers"` to `static.json`:
230+
#### Strict transport security (HSTS)
231+
232+
Prevent downgrade attacks with [HTTP strict transport security](https://developer.mozilla.org/en-US/docs/Web/Security/HTTP_strict_transport_security). Add HSTS `"headers"` to `static.json`.
233+
234+
⚠️ **Do not set HSTS headers if the app's hostname will not permantly support HTTPS/SSL/TLS.** Once HSTS is set, switching back to plain HTTP will cause security errors in browsers that received the headers, until the max-age is reached. Heroku's built-in `herokuapp.com` hostnames are safe to use with HSTS.
231235

232236
```json
233237
{

0 commit comments

Comments
 (0)