Open faustdio-dico opened 1 month ago
Someone more experienced than me can jump in, but as far as I remember, you had to set ssl_host
and ssl_redirect
to support proper 301. Also, the STS header is sent ONLY on verified HTTPS connections. If you need the STS header for all HTTP and HTTPS requests (which you shouldn't), you can use the force_sts_header
, but if is_development
is true during your testing phase, it will still disable this header ignoring the force_sts_header
.
Environment info:
Describe the bug
It seems that Krakend is not sending the Strict Transport Security http header for redirect responses (e.g. 301), which is unexpected to us since the header is working for all other responses(2xx, 4xx, 5xx). In our config, we disabled the automatic redirection and we expected the header to be present in 3xx responses.
Your configuration file:
Expected behavior We expected the Strict Transport Security http header for redirect responses to be present since it goes through our krakend api-gateway.