X
點擊此處開啟此網站的行動版。

技術支援討論區

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

已張貼

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?
引用

額外的系統細節

應用程式

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

更多資訊

jscher2000
  • Top 10 Contributor
8775 個解決方法 71736 個答案

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??
這篇文章有幫助嗎?
引用
問個問題

如果您還沒有帳號,您必須先 登入您的帳號 來回覆文章。請 開始一個新問題