What is crossdomain.xml file?

前端 未结 2 925
温柔的废话
温柔的废话 2020-11-30 10:10

Actually I wish I knew where to start from...

I have embedded an third party SWF image gallery control, in an personal website of mine.

The SWF is XML driven

相关标签:
2条回答
  • 2020-11-30 10:34

    "A cross-domain policy file is an XML document that grants a web client—such as Adobe Flash Player, Adobe Reader, etc.—permission to handle data across multiple domains.". Taken from Adobe website http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html.

    EDIT: Answer to question 2: Flex crossdomain.xml not working correctly in Chrome/Firefox?. Install Adobe Flash Player for developers, Fiddler (or similar), these tools should make your life easier. Also read http://kb2.adobe.com/cps/839/cpsid_83950.html.

    0 讨论(0)
  • 2020-11-30 10:40

    And for all the newbies out there just like me, the SWF works in Chrome too!

    The difference was that http://www.example.com and http://example.com are TWO DIFFERENT "entity s".

    I was loading the file to var flashvars = { xmlPath: "http://www.example.com/xml.aspx" }; and made my tests with Chrome, on a "different domain" http://example.com

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