Closed RicardoSette closed 5 years ago
You have to tell nginx to always send the header no matter the response code using the always
keyword:
add_header Strict-Transport-Security "max-age = 15768000" always;
See the documentation: http://nginx.org/en/docs/http/ngx_http_headers_module.html#add_header
Hi @erikdubbelboer ,
how to keep existing add_header in nginx settings?
example in nginx.conf:
but in the challenge, plugin removes this header. How could we keep the headers even added in the 401 challenge response?
see full example:
See in response 401, don't have header Strict-Transport-Security