Can't activate HSTS on Ingress Controller

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) 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

Can you help me ?

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

Hello,

Any idea?

Thank you