我有一个Blazor App,在本地主机上运行得很好,但是,当我把它部署到服务器上时,我得到了以下错误。
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。
我找遍了所有地方,据我所知,没有这样的错误报告。
原来是防火墙阻挡了它。简单地把它的安全级别改为较低级别就可以了