Let Caddy's HSTS header replace the one HeyForm sends
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,11 @@
|
|||||||
# Tell browsers to always use HTTPS for each site for a year. No
|
# Tell browsers to always use HTTPS for each site for a year. No
|
||||||
# includeSubDomains, so hosts not served here are unaffected.
|
# includeSubDomains, so hosts not served here are unaffected.
|
||||||
|
# defer: replace any HSTS header an app sends itself, so there's only one.
|
||||||
(hsts) {
|
(hsts) {
|
||||||
header Strict-Transport-Security "max-age=31536000"
|
header {
|
||||||
|
Strict-Transport-Security "max-age=31536000"
|
||||||
|
defer
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
{{ subdomains.pocketid }} {
|
{{ subdomains.pocketid }} {
|
||||||
|
|||||||
Reference in New Issue
Block a user