Path ‘/crossdomain.xml’ is forbidden. -Error ! [Fix]

A CrossDomain.xml 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. -From Adobe

If you see crossdomain.xml file error in website logs, it means either the file is missing on the server or the application is not able to access the file. To fix the error-

  • Create an XML file with the name crossdomain and place the following content in the file based on requirement-

Least permissive:

<?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>

Least restrictive:

<?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="all"/> 
<allow-access-from domain="*" secure="false"/> 
<allow-http-request-headers-from domain="*" headers="*" secure="false"/> 
</cross-domain-policy>

For more details and options click here

Copy the file to the root of the website folder on server and test by visiting http://www.example.com/crossdomain.xml . If browser shows the content of the file means the issue is resolved.

  • If XML file browsing is disabled then add the following error will occur:

To fix this errir, add the below entry in the Handlers and HttpHandlers section of web.config file:

<add path="crossdomain.xml" verb="GET" type="System.Web.StaticFileHandler" name="CrossDomainAllow" />

Note: The name value in above entry can be any unique value.

The above two steps will resolve the crossdomain.xml forbidden error. In case of any issue, please let us know through comments / contact us section.

For details please visit adobe link.

Thanks for checking out ! Please share, like and comment.

Categories
Comments
All comments.
Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  1. Siddharth

    Thanks for sharing this useful article Abhi 🙂