cross-domain policy file

 

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. When a client hosts content from a particular source domain and that content makes requests directed towards a domain other than its own, the remote domain would need to host a cross-domain policy file that grants access to the source domain, allowing the client to continue with the transaction. Policy files grant read access to data, permit a client to include custom headers in cross-domain requests, and are also used with sockets to grant permissions for socket-based connections.

For complete details, download the cross-domain policy file specification below. The specification is a reference for the structure and use of cross-domain policy files. This information can be used by developers and content providers to make sure their applications and servers conform to the rules set forth by policy files defined in this manner.

Read the specification:

Schemas

Schemas describe the structure of a document. The cross-domain policy file schema is available as DTD (Document Type Definition) or XSD (XML Schema Definition). XSDs are available to define the generic policy file schema, as well as each different type of policy file (either HTTP, HTTPS, FTP, or Socket) since policy files hosted in each of those contexts are slightly different. Table 1 lists all available schemas for policy files.

Table 1. Policy file DTDs and schemas

Schema URL
Generic DTD http://www.adobe.com/xml/dtds/cross-domain-policy.dtd
Generic XSD http://www.adobe.com/xml/schemas/PolicyFile.xsd
HTTP XSD http://www.adobe.com/xml/schemas/PolicyFileHttp.xsd
HTTPS XSD http://www.adobe.com/xml/schemas/PolicyFileHttps.xsd
FTP XSD http://www.adobe.com/xml/schemas/PolicyFileFtp.xsd
Socket XSD http://www.adobe.com/xml/schemas/PolicyFileSocket.xsd
posted @ 2011-10-02 11:35  Lunaa  阅读(102)  评论(0编辑  收藏  举报