gpt4 book ai didi

windows - crossdomain.xml Windows Azure 的位置

转载 作者:行者123 更新时间:2023-12-03 04:47:28 25 4
gpt4 key购买 nike

我需要将 crossdomain.xml 文件放入我的 Windows Azure Web 角色中。但在哪里呢?

我尝试将其放入:F:\sitesroot\0

但是我的 Unity3D Web 应用程序显示:异常:无法连接,因为未找到有效的跨域策略。我不知道我错过了什么。 Unity 默认使用端口 (843)。

crossdomain.xml放在哪里

欢迎任何帮助!

最佳答案

CrossDomainPolicy.xml 必须位于应用程序的根目录下。

如果您使用单个 Web 角色,只需在应用程序的根目录添加 CrossDomainPolicy.xml 并按如下所示正确设置:

enter image description here

根据您的角色的 ServiceDefinition.csdef 中有多少个“站点”部分,您将获得许多\sitesroot\0 和\sitesroot\1 ,并且 CrossDomainPolicy.xml 将分发给所有站点,具体取决于您的角色解决方案设置。

我在以下博客中讨论过这个问题: Silverlight front end calling to WCF Service, all in one Windows Azure Web Role Sample

关于windows - crossdomain.xml Windows Azure 的位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10755837/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com