At work, every web service that I put together I serve over HTTPS by reverse proxy/URL redirect. That works 90% of the time, but the other 10% something in the web app I'm serving breaks because it fails to follow the redirect.
Is there a "correct" way to implement HTTPS that's not with redirects? That's the only way I've ever been taught.
Yes there is. You have to remove the "preload" part of the HSTS header and for firefox, you can set the max-age to 0. Since they use the chromium list, you can send an E-mail to the address specified on the bottom of the HSTS preload registration service and thell them to remove the site. Of course this is as slow as adding to the list was. I had to do that once because I acquired a domain that was in that list, probably because of the previous owner.
You can clear your own HSTS cache, but your users will get certificate warnings, and unlike regular HTTPS warnings, users cannot add an exception for your case.
It tells the browser that it should always use HTTPS even if the user (or a link) says to use HTTP.
And you’ll be fucked if you ever open a site that serves different pages over HTTPS than over HTTP. Now you don’t have the choice any longer.
(Yes, I emailed the admin of that site I was referring to and after a couple months they fixed it. Which was only possible thanks to Letsencrypt, so big thanks to them for the n-th time.)
48
u/Seref15 Nov 24 '16
At work, every web service that I put together I serve over HTTPS by reverse proxy/URL redirect. That works 90% of the time, but the other 10% something in the web app I'm serving breaks because it fails to follow the redirect.
Is there a "correct" way to implement HTTPS that's not with redirects? That's the only way I've ever been taught.