Google chrome http://localhost:8080 重定向到https://localhost:8080 在catalina和chrome81中

Google chrome http://localhost:8080 重定向到https://localhost:8080 在catalina和chrome81中,google-chrome,macos-catalina,hsts,Google Chrome,Macos Catalina,Hsts,在macOS 10.15.4和chrome 81上开发。 如果您访问https://localhost:9080然后http://localhost:8080有两个应用程序,http://localhost:8080和https://localhost:9080正在运行,重定向到https://localhost:8080。 即使我在chrome://net-internals/#hsts和删除缓存,访问https://localhost:9080 我正在寻找一个彻底的解决方案。在其他浏览器中,

在macOS 10.15.4和chrome 81上开发。
如果您访问
https://localhost:9080
然后
http://localhost:8080
有两个应用程序,
http://localhost:8080
https://localhost:9080
正在运行,重定向到
https://localhost:8080
。 即使我在
chrome://net-internals/#hsts
和删除
缓存
,访问
https://localhost:9080


我正在寻找一个彻底的解决方案。

在其他浏览器中,它也会重定向。根据浏览器和其他工具的不同,设置会随着时间的变化而变化。最简单的方法就是使用IP

127.0.01
而不是“localhost”。就你而言:

127.0.0.1:8080

这回答了你的问题吗?