由于我们已经设置了withCredentials
属性,因此发生了错误。您需要调整CORS配置以使用特定的Origin值,而不是通配符,因为在使用凭据时,CORS不支持通配符。
因此 access-control-allow-origin: * 时不要设置 withCredentials: true
设置XMLHttpRequest“ withCredentials”属性 https://github.com/aspnet/SignalR/issues/2110