跨域上传图片等限制域名
1.crossdomain.xml 限制上传的域名,ip等.
2.将此文件放到根目录下
3.代码:
<cross-domain-policy> <site-control permitted-cross-domain-policies="all"/> <allow-access-from domain="*.baidu.com"/> <allow-http-request-headers-from domain="*" headers="*"/> </cross-domain-policy>