Flash cross-domain loading data and movies

zhaozj2021-02-16  105

????????? Calling the data and movies under other domain names, Flash Player 7 is forbidden by default, such as calling WebService under other domains, unless the server is called crossdomain.xml Policy file. In this XML

Node can include multiple

Sub nodes, theDomain.com specifies that you can access the domain names under this domain name, you can use wildcard "?" And "*", such as allowing any domain name access, then the file content is:

XML Version = "1.0"?> ???

Cross-Domain-Policy>

????????? WebServicex.net, this famous WebService website has such a file with the directory. ????????? Flash Player 7 will read the policy file to determine if this cross-domain access is legal. The policy file only works on a server that communicates with HTTP, HTTPS or FTP. Policy files are specific to port and protocols of the server. ????????? . ????????? In a file published as a target player in Flash Player 5 or lower, there is no limit to cross-domain or subdomain access. ????????? In a file published in the target player with Flash Player 6, you can use the localconnection.allowdomain handler or system.security.allowdomain () method to specify the allowed cross-domain access and do not need to be executed. Any command allows subdomain access (eg, files on Store.Somesite.com accesses files on www.somesite.com).

转载请注明原文地址:https://www.9cbs.com/read-13526.html

New Post(0)