簡體   English   中英

EventSource 的響應具有不是“text/event-stream”的 MIME 類型(“text/plain”)。 中止連接 Azure SignalR

[英]EventSource's response has a MIME type ("text/plain") that is not "text/event-stream". Aborting the connection Azure SignalR

EventSource 的響應具有不是“text/event-stream”的 MIME 類型(“text/plain”)。 中止連接 Azure SignalR

我在 MVC c# 項目中不斷收到錯誤,如何解決相同的問題

在啟動.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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM