Web 服务中出现跨域错误
我正在使用网络服务从服务器获取信息并收到此错误:
Error: Request for resource at http://backoffice.dev144.com/PPIWS/B144_MAPWS.ASMX by requestor from http://maps.localhost:10000/B144/Images_v2/b144_map.swf/[[DYNAMIC]]/4 is denied due to lack of policy file permissions.
*** Security Sandbox Violation ***
Connection to http://backoffice.dev144.com/PPIWS/B144_MAPWS.ASMX halted - not permitted from http://maps.localhost:10000/B144/Images_v2/b144_map.swf
当然,我将跨域文件放在主服务器目录中,如下所示:
allow-access-from domain="*" secure="false"/
谁能告诉我为什么它不起作用?
I'm using a webservice to get information from the server and got this error:
Error: Request for resource at http://backoffice.dev144.com/PPIWS/B144_MAPWS.ASMX by requestor from http://maps.localhost:10000/B144/Images_v2/b144_map.swf/[[DYNAMIC]]/4 is denied due to lack of policy file permissions.
*** Security Sandbox Violation ***
Connection to http://backoffice.dev144.com/PPIWS/B144_MAPWS.ASMX halted - not permitted from http://maps.localhost:10000/B144/Images_v2/b144_map.swf
Of course i put crossdomain file in the main server directory that looks like this:
allow-access-from domain="*" secure="false"/
Can anyone tell me why it's not working?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,您尝试登录到不同的子域 http://backoffice.dev144.com/
如果您有//www 主网站上的 crossdomain.xml 不起作用。
您还需要将 crossdomain.xml 复制到 backoffice.dev144.com/crossdomain.xml
As I see you try to login to a different subdomain http://backoffice.dev144.com/
If you have the crossdomain.xml on the main //www website this will not work.
You need to copy the crossdomain.xml also to the backoffice.dev144.com/crossdomain.xml