Imported from the Apple Support Forums via the Wayback Machine 🔗
If, in Safari, a http:// site is getting automatically redirected to https:// and you get an error it cannot open the page, it's due to HSTS. You cannot prevent that from happening with the regular Safari or by deleting the ~/Library/Cookies/HSTS.plist file. Just doesn't work.
EXCEPT if you download the Safari Technology Preview version where you can delete the HSTS Policy cookie for said site. And then it works! Your 'normal' Safari version will pick this up too, in case you don't want to continue using the preview version.
Was driving me crazy.
Note: Chrome and Firefox are not affected by this behavior.
Imported from the Apple Support Forums via the Wayback Machine 🔗
I can confirm that this worked. My issue was with localhost, because I had tried using an SSH tunnel to another web host that requested https.
0
Alexander Meier·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Thanks for that solution - this is by far the most elegant way to get rid of that problem! :-)
0
ohvitorino·
Imported from the Apple Support Forums via the Wayback Machine 🔗
I can also confirm that this works. Thanks!
0
Morungos·
Imported from the Apple Support Forums via the Wayback Machine 🔗
This now seems to be in the regular Safari as of 10.14.4 at least. It was driving me crazy, as I'd managed to get this set for localhost. However, just selecting localhost and deleting all its cookies worked fine in the regular Safari (12.1)/