# Can't activate HSTS on Ingress Controller

**URL:** <https://forums.suse.com/t/cant-activate-hsts-on-ingress-controller/16976>\
**Category:** SUSE Rancher Prime\
**Created:** [March 30, 2020, 2:18pm UTC](https://forums.suse.com/t/cant-activate-hsts-on-ingress-controller/16976 "2020-03-30T14:18:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tibodf](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/tibodf/32/5563_2.png) [@tibodf](https://forums.suse.com/u/tibodf)\
**Post date:** [March 30, 2020, 2:18pm UTC](https://forums.suse.com/t/cant-activate-hsts-on-ingress-controller/16976/1 "2020-03-30T14:18:59Z")

</div>

Hello,  
I’m trying, unsuccessfully, to activate the HSTS in my cluster.  
I followed the following doc ([https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/#hsts](https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/#hsts)) and added the following settings in the Nginx ingress controller configmap:  
|hsts||true|||  
|hsts-include-subdomains||true|||  
|hsts-max-age||63072000|||  
|hsts-preload||true|

When I check the headers of my website, I don’t see the HSTS enabled or with website like [https://gf.dev/hsts-test](https://gf.dev/hsts-test)

Can you help me ?

My config:  
Rancher 2.2.8 HA  
Ingress version : rancher/nginx-ingress-controller:0.21.0-rancher3

---

<div class="post-metadata">

**Author:** ![tibodf](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/tibodf/32/5563_2.png) [@tibodf](https://forums.suse.com/u/tibodf)\
**Post date:** [April 3, 2020, 10:33am UTC](https://forums.suse.com/t/cant-activate-hsts-on-ingress-controller/16976/2 "2020-04-03T10:33:50Z")

</div>

Hello,

Any idea?

Thank you
