crossdomain.xml 中最严格的策略是否相当于根本没有?
我可以在我的服务器日志上看到一些 http 404 对于 [mydomain]/crossdomain.xml
我想知道是否添加此文件并将其配置为具有最严格的策略。也就是说:(取自 html 5 样板)
<?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>
这是否相当于根本没有?
我发现与跨域误导相关的 http 404 错误,因此我想摆脱它们,以便我可以识别真实的更有效。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不完全是。规范规定:
所以,我认为最具限制性的技术是使用“none”。
Not quite. The spec states:
So, I think the most restrictive technique is to use "none".