Visual Studio 浏览器 Link 在 Firefox 中不工作

Visual Studio Browser Link not working in Firefox

我使用的是 Visual Studio 2015,浏览器 Link 不适用于 Firefox。 IE 和 Chrome 与浏览器 Link.

完美配合

刚买了一台新机器,但也没用。

我尝试了 browserlink 仪表板中提到的先决条件(对于静态文件,启用调试)并且我使用 IIS express,所以 .NET 4.0 就在那里。

Firefox 是否需要更多设置?

在网络视图中,我只是没有收到服务器的响应,传输了 0 个字节。

网络跟踪:

找到了,主要网站 运行ning 在 44300 上,浏览器链接似乎 运行 在 44399 上(尽管该端口在 IIS express 中不可见)

浏览到 https://localhost:44399 gave me the Firefox "This Connection is Untrusted" screen, where I needed to trust("confirm security exception") the self signed IIS certificate (just like what I had done on the https://localhost:44300 站点)

所以 Firefox 似乎会记住每个端口号的受信任证书,而不是像 IE 和 Chrome 那样每个 DNS/IP/Name。

现在浏览器链接正在运行并正在下载文件。

我在本地没有 IIS 运行,但是 运行 在 Visual Studio 2019 本地 运行 应用程序遇到了类似的问题。

Erik 的建议也为我解决了这个问题。浏览到 https://localhost:44399/ 并接受在 Firefox Developer 中工作的证书。

Microsoft 有关自签名证书的更多详细信息: https://docs.microsoft.com/en-us/iis/extensions/using-iis-express/handling-url-binding-failures-in-iis-express