【问题标题】:How can I stop the Azure DocumentDB Emulator from redirecting localhost to HTTPS?如何阻止 Azure DocumentDB 模拟器将 localhost 重定向到 HTTPS?
【发布时间】:2016-12-11 07:12:17
【问题描述】:

每当我启动它时,它都会发送一个HSTS header,这意味着现在每个请求都会从http://localhost 重定向到https://localhost

这是使用 node.js 在本地开发时的 PITA。

有没有办法阻止它这样做?

【问题讨论】:

    标签: node.js http azure azure-cosmosdb hsts


    【解决方案1】:

    我相信这已在最近的版本中得到修复。尝试重新安装最新版本?

    【讨论】:

    • 我刚刚下载并重新安装了模拟器,v 1.11.72.11。 localhost 仍然为每个请求重定向到 https。我怀疑我之前的安装所做的任何系统配置更改仍然有效,并且没有被新安装程序重置。有没有办法验证/纠正它?
    猜你喜欢
    • 2018-05-23
    • 2018-08-01
    • 2017-05-21
    • 2015-03-06
    • 2018-12-02
    • 2016-12-09
    • 1970-01-01
    • 2020-12-28
    相关资源
    最近更新 更多