如何阻止Firefox强制在本地开发服务器上使用https://? [英] How do I stop Firefox from forcing https:// on local development server?

查看:67
本文介绍了如何阻止Firefox强制在本地开发服务器上使用https://?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用AMPPS在Macintosh上运行开发环境.

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

我有一个包含项目文件的文件夹.我已将其添加到我的 hosts 文件中:

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.

当我尝试使用Firefox连接到该站点时:

When I attempt to connect to the site using Firefox:

http://www.example.com

它总是重定向到:

https://www.example.com

然后抱怨它.

该文件夹中没有其他文件,只有一个 index.html 虚拟文件.

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

当我在 lynx Safari Chrome 中测试该站点时,便会进入示例站点.当我在Firefox中进行测试时,就是我遇到的问题.

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是我的主要浏览器,因此可能存在缓存问题,但是我看不到任何没有尝试过的清除缓存的方法:试图忘记页面或清除缓存.

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.

如何阻止Firefox执行此操作?

How do I stop Firefox from doing this?

推荐答案

尝试一下:

  • 转到 about:config
  • 搜索 network.stricttransportsecurity.preloadlist 并将其设置为 false (双击)
  • go to about:config
  • search for network.stricttransportsecurity.preloadlist and set it to false (double click)

这篇关于如何阻止Firefox强制在本地开发服务器上使用https://?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆