I can see on the logs of my server a few http 404 for [mydomain]/crossdomain.xml
I was wondering if to add therefore this file and configure it to have the most restrictive policy. That is: (taken from html 5 boilerplate)
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
-<cross-domain-policy>
<!-- Read this: www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html -->
<!-- Most restrictive policy: -->
<site-control permitted-cross-domain-policies="none"/>
<!-- Least restrictive policy: -->
<!-- <site-control permitted-cross-domain-policies="all"/> <allow-access-from domain="*" to-ports="*" secure="false"/> <allow-http-request-headers-from domain="*" headers="*" secure="false"/> -->
<!-- If you host a crossdomain.xml file with allow-access-from domain="*" and don’t understand all of the points described here, you probably have a nasty security vulnerability. ~ simon willison -->
</cross-domain-policy>
Would it be equivalent to not having at all ?
I find the http 404 errors related to crossdomain misleading and hence I want to get rid of them so I can identify the real ones more effectively.
Not quite. The spec states:
So, I think the most restrictive technique is to use "none".