【发布时间】:2020-06-05 17:06:58
【问题描述】:
我有一个在 localhost 上运行良好的 Blazor 应用程序,但是,当我将它部署到服务器时,我收到以下错误:
Error: Failed to complete negotiation with the server: Error: Forbidden
Error: Failed to start the connection: Error: Forbidden
Error: Error: Forbidden
Error: Cannot send data if the connection is not in the 'Connected' State.
错误来自 blazor.server.js。
我到处找了,据我所知没有这样的错误报告。
【问题讨论】:
-
什么服务器以及它是如何配置的?可能是 WebSockets 已关闭。但应该有一个后备。
-
@HenkHolterman 差不多了。 websocket 被防火墙阻止了。
标签: asp.net-core blazor blazor-server-side