How do I stop Firefox from forcing https:// on local development server?

心不动则不痛 提交于 2021-01-22 06:26:53

问题


I am running a development environment on my Macintosh using AMPPS.

I have a folder with my project files. I have added this to my hosts file:

127.0.0.1   www.example.com

and I have set up the virtual domain accordingly.

When I attempt to connect to the site using Firefox:

http://www.example.com

it always redirects to:

https://www.example.com

and then complains about it.

The folder has nothing else in it but a dummy index.html file.

When I test the site in lynx or in Safari or Chrome, I get to my sample site. When I test in Firefox, that’s when I get the problem.

Firefox is my main browser, so it is possible that I have a caching problem, but I cannot see any method of clearing the cache that I haven’t tried already: trying to forget the page or clearing the cache.

I have tried all the suggestions mentioned here and elsewhere, but I am obviously missing something.

How do I stop Firefox from doing this?


回答1:


Try this:

  • go to about:config
  • search for network.stricttransportsecurity.preloadlist and set it to false (double click)


来源:https://stackoverflow.com/questions/53093537/how-do-i-stop-firefox-from-forcing-https-on-local-development-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!