[英]EventSource's response has a MIME type ("text/plain") that is not "text/event-stream". Aborting the connection Azure SignalR
EventSource's response has a MIME type ("text/plain") that is not "text/event-stream".
EventSource 的响应具有不是“text/event-stream”的 MIME 类型(“text/plain”)。 Aborting the connection Azure SignalR
中止连接 Azure SignalR
I am Getting the error continuously in MVC c# project, How to resolve the same我在 MVC c# 项目中不断收到错误,如何解决相同的问题
On Startup.cs在启动.cs
` `
public void ConfigureAuth(IAppBuilder app)
{
app.MapAzureSignalR(this.GetType().FullName);
app.Map("/EnableDetailedErrors", map =>
{
HubConfiguration hubConfiguration = new HubConfiguration
{
EnableDetailedErrors = true,
EnableJavaScriptProxies = false
};
map.MapAzureSignalR(this.GetType().FullName, hubConfiguration);
//map.MapSignalR(hubConfiguration);
});
}
` `
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.