Flash AS3 Crossdomain bypass issue

回眸只為那壹抹淺笑 提交于 2019-12-24 01:56:10

问题


I'm currently hosting a flash game on my website which is https: . I've added a crossdomain file that specifies I only allow access from this website that my flash application is hosted on. If I download the swf file and try to run it from my local computer, it wont let me (which is what I wanted), however, if i go to flash -> global settings -> Advanced -> trusted location settings , and add the file that I've downloaded to the trusted locations, It will ignore the crossdomain and let me play (which is not what I want).

here's my crossdomain policy file:

  $@"<cross-domain-policy>
        <allow-access-from domain=""{Domain}""/>
        <site-control permitted-cross-domain-policies=""master-only""/>
        <allow-http-request-headers-from domain=""{Domain}"" headers=""*"" secure=""true""/>
        </cross-domain-policy>";

I would appreciate any kind of help :=)

来源:https://stackoverflow.com/questions/53751372/flash-as3-crossdomain-bypass-issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!