mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-02 19:04:14 +02:00
core/config: disable strict-transport-security header with staging autocert (#4741)
This commit is contained in:
parent
3ad72db2fb
commit
cfc339548f
2 changed files with 10 additions and 1 deletions
|
@ -1155,7 +1155,7 @@ func (o *Options) GetSetResponseHeadersForPolicy(policy *Policy) map[string]stri
|
|||
hdrs[k] = v
|
||||
}
|
||||
|
||||
if !o.HasCertificates() {
|
||||
if !o.HasCertificates() || o.AutocertOptions.UseStaging {
|
||||
delete(hdrs, "Strict-Transport-Security")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue