简体   繁体   English

在Azure移动服务.Net后端中为SignalR启用CORS

[英]Enable CORS for SignalR in Azure Mobile services .Net Backend

There are several questions about enabling CORS for SignalR in Azure Mobile Services for a .Net Backend. 关于在.Net后端的Azure移动服务中为SignalR启用CORS,存在几个问题。

This is the best solution I've found, but I'm having trouble with 'System.Web.Cors' version when deploy to Azure Mobile Services. 是我找到的最佳解决方案,但是在部署到Azure移动服务时遇到“ System.Web.Cors”版本的问题。 The application tries to load the version 5.0.0 when I'm deploying version 5.1.0. 当我部署版本5.1.0时,应用程序尝试加载版本5.0.0。

If I configure CORS only for WebApi it works fine with version 5.1.0. 如果我仅为WebApi配置CORS,则在5.1.0版中可以正常使用。

Can anybody help with this? 有人可以帮忙吗?

Can you try and use the 5.0.0 version? 您可以尝试使用5.0.0版本吗? We do indeed have this as an issue but I haven't had a chance to look at it in detail. 我们确实确实有这个问题,但是我没有机会详细研究它。 Hope to be able to do shortly. 希望能很快做到。

Henrik 亨里克

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM