Security Sandbox Violation with Youtube API

后端 未结 1 1788
悲哀的现实
悲哀的现实 2021-01-22 08:17

I\'m getting a very annoying run time error message, which crashes my flash application when it runs in the browser. The error pertains to a \'Security Sandbox Violation\' when

相关标签:
1条回答
  • 2021-01-22 08:40

    You need to specify a crossdomain.xml policy-file according to Adobe Flash security rules.

    1) Place the crossdomain.xml at the root directory of your website

    2) Example content (not recommended)

        <?xml version="1.0"?>
        <cross-domain-policy>
           <allow-access-from domain="*" />
        </cross-domain-policy>
    

    3) Load the policy-file into your project (AS3):

        System.security.loadPolicyFile("http://www.DOMAIN.net/crossdomain.xml");
    

    Read the reference document for further information.

    0 讨论(0)
提交回复
热议问题