I'd be very annoyed if I were troubleshooting HTTPS/HSTS bugs and found out that certain headers were ignored because the target IP is localhost. It makes my life harder for no good reason other than to protect those who misconfigure their webserver from their own mistakes.
Re:I don't care about HSTS for localhost
by Already__Taken on Wednesday June 08, 2022 @05:38PM
(#31674639)
You have that backwards. Parent was stating internal domain names can resolve to 127 to enable HSTS. Specifically using "localhost" should be the exception, not the resolution of 127. you could shove securehost in /etc/hosts as 127.0.0.1 to turn on HSTS for example.
Plus, what’s the benefit of encrypting on a loopback connection? Who’s intercepting?