files/en-us/web/http/reference/headers/x-permitted-cross-domain-policies/index.md
The HTTP X-Permitted-Cross-Domain-Policies {{Glossary("response header")}} defines a meta-policy that controls whether site resources can be accessed cross-origin by a document running in a web client like Adobe Acrobat or Microsoft Silverlight.
It can be used in cases where the website needs to declare a cross-domain policy, but cannot write to the root directory of the domain.
Usage of this header is less common since Adobe Flash Player and Microsoft Silverlight have been deprecated.
Some security testing tools will still check for the presence of a X-Permitted-Cross-Domain-Policies: none header because it can mitigate the risk of an overly-permissive policy file added to your site by accident or through malicious actions.
X-Permitted-Cross-Domain-Policies: <permitted-cross-domain-policy>
none
master-only
by-content-type (HTTP/HTTPS only)
Content-Type: text/x-cross-domain-policy are allowed.by-ftp-filename (FTP only)
crossdomain.xml (URLs ending in /crossdomain.xml) are allowed.all
none-this-response
Web clients such as Adobe Acrobat or Apache Flex can load web documents, which may in turn load resources from the same site or other sites. Access is restricted to same-site resources by default, due to the same origin policy, but cross-origin sites may choose to make some or all of their resources available to clients cross-origin using special files, referred to as a cross-domain policy files.
A "master" cross-domain policy file may be defined as crossdomain.xml file in the root of the domain, for example: http://example.com/crossdomain.xml.
The master file defines the meta-policy for the whole site using the permitted-cross-domain-policies attribute of the <site-control> tag.
The meta-policy controls whether any policies are allowed, and the conditions for the other "sub" cross-domain policy files to be used.
These other policy files might be created in particular directories to specify access over the files in their given directory tree.
For example, this is the least permissive master policy definition, which does not permit any access, and does not allow the use of other "sub" policy files.
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<site-control permitted-cross-domain-policies="none"/>
</cross-domain-policy>
The X-Permitted-Cross-Domain-Policies header can specify a meta-policy for the HTTP response it's included in, or override a meta-policy defined in the master cross-domain policy file, if present.
It takes the same values as the file's permitted-cross-domain-policies attribute and additionally none-this-response.
Most commonly, it's used to prevent any access to site resources in cases where the developer does not have access to create a master cross-domain policy file in the site root.
If you don't need to load application data in clients such as Adobe Flash Player or Adobe Acrobat (or legacy clients), then the header should be configured as X-Permitted-Cross-Domain-Policies: none:
X-Permitted-Cross-Domain-Policies: none
Documented in the Adobe Cross Domain Policy File Specification.