X
Tap here to go to the mobile version of the site.

Support Forum

How do you prevent browswer from redirecting localhost to https://localhost?

Posted

Browser randomly redirects localhost to https://localhost. After a couple restarts, and extensive research, it stops doing it. Any ideas on how to prevent it from happening in the first place?

Browser randomly redirects localhost to https://localhost. After a couple restarts, and extensive research, it stops doing it. Any ideas on how to prevent it from happening in the first place?
Quote

Additional System Details

Application

  • User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0

More Information

jscher2000
  • Top 10 Contributor
8763 solutions 71700 answers

Hi dcarter.android, are you saying that Firefox starts changing

http://localhost/

to

https://localhost/

Does your localhost have an SSL certificate?

One possible reason for upgraded connections is if a website on https://localhost/ previously instructed Firefox to always use a secure connection (HTTP Strict Transport Security or HSTS).

However, that wouldn't go away by itself, it is stored persistently in your profile folder.

Another possible reason is an extension like HTTPS Everywhere, but I don't know whether it pays attention to localhost.

Otherwise, maybe some code in the site??

Hi dcarter.android, are you saying that Firefox starts changing http://localhost/ to https://localhost/ Does your localhost have an SSL certificate? One possible reason for upgraded connections is if a website on https://localhost/ previously instructed Firefox to always use a secure connection (HTTP Strict Transport Security or HSTS). However, that wouldn't go away by itself, it is stored persistently in your profile folder. Another possible reason is an extension like HTTPS Everywhere, but I don't know whether it pays attention to localhost. Otherwise, maybe some code in the site??
Was this helpful to you?
Quote
Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.