有没有办法通过HTTPS访问Visual Studio的内置ASP.NET开发服务器?
我正在运行一个简单的 ASP.net Web 应用程序。运行此程序后,Chrome 显示以下错误。
localhost sent an invalid response.
Try running Windows Network Diagnostics.
ERR_SSL_PROTOCOL_ERROR
Run Code Online (Sandbox Code Playgroud)
但我的应用程序是在 http 上,而不是 https 上。
但 URL 正在加载 https://localhost:54056/
config 也仅指向 http。
<site name="tan-square" id="2">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="C:\Users\Myfolder\OneDrive\Downloads\tan-square" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:54056:localhost" />
</bindings>
</site>
Run Code Online (Sandbox Code Playgroud)
我不明白问题出在哪里。为什么用https加载?
无法在 chrome 中正确看到 localhost https 页面。它说 :
**This site can’t provide a secure connection**
localhost sent an invalid response.
Try running Windows Network Diagnostics.
ERR_SSL_PROTOCOL_ERROR
Run Code Online (Sandbox Code Playgroud)
我试过 -deleting domain localhost from -chrome://net-internals/#hsts
但没有帮助。