【问题标题】:Deleting Chrome HSTS for facebook.com not working删除 facebook.com 的 Chrome HSTS 不起作用
【发布时间】:2016-12-20 09:44:17
【问题描述】:

我目前正在我的网站上进行一些调试,其中涉及调用 facebook API。

我已经安装了 dnsmasq 以使用我的 mac os X 将所有对 facebook.com 的请求重定向到 127.0.0.1

我有一个回显服务器,它将在我的笔记本电脑的端口 80 上打印出所有原始 http 请求标头。

现在我的问题来了。当我访问 facebook.com 时,我意识到 Chrome 会自动将 facebook.com 的 http:// 转发到 https://

我用谷歌搜索并找到了删除此 HSTS 问题的方法。我访问chrome://net-internals#hsts 看到这样的东西:

HSTS chrome image

在“删除域”下输入“facebook.com”后,我仍然可以在下面的输入框中查询“facebook.com”。

我尝试清除 chrome 上的所有用户数据,关闭并重新打开 chrome,甚至使用隐身模式。

  • 为什么 chrome 仍将所有对 facebook.com 的请求重定向到 https?

  • 如果chrome://net-internals#hsts 不是,我该如何禁用它 靠谱吗?

【问题讨论】:

    标签: google-chrome ssl hsts


    【解决方案1】:

    chrome://net-internals/#hsts 上的Delete domain 框旁边的文字明确指出preloaded entries 不能删除。 This feature request 在 Chrome 错误跟踪器中已作为 WontFix 关闭。

    facebook.com 及其相当多的子域包含在 Chrome 的 preload list 中。

    【讨论】:

      【解决方案2】:

      您可以使用其他域名进行测试。

      只需对 facebook-api-test.com 进行 api 调用,将该域映射到 localhost 并代理调用。

      【讨论】:

        猜你喜欢
        • 2011-05-08
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2023-03-13
        • 2012-11-18
        • 2022-01-18
        • 1970-01-01
        相关资源
        最近更新 更多