We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
由于IE8/9等浏览器不支持h5上传,所以组件层面使用了flash上传,flash路径为: https://alinw.alicdn.com/alinw/uxuploader/2.0.1/flashpicker.swf
https://alinw.alicdn.com/alinw/uxuploader/2.0.1/flashpicker.swf
众所周知,flash文件在调用系统接口时会造成跨域问题,它首先会去找系统根目录下的crossdomain.xml跨域策略资源文件,例:http://xxx.xxx.com/crossdomain.xml,若文件不存在,则访问不成功造成上传失败;若crossdomain.xml文件存在,且里边设置了允许falsh所在的域访问,那么通信正常且可正常调用上传接口。
http://xxx.xxx.com/crossdomain.xml
crossdomain.xml文件限制了flash是否可以跨域读写数据以及允许从什么地方跨域读写数据,具体写法如下:
<?xml version="1.0"?> <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"> <cross-domain-policy> <site-control permitted-cross-domain-policies="master-only" /> <allow-access-from domain="*.alicdn.com"/> <allow-http-request-headers-from domain="*" headers="*" /> </cross-domain-policy>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
由于IE8/9等浏览器不支持h5上传,所以组件层面使用了flash上传,flash路径为:
https://alinw.alicdn.com/alinw/uxuploader/2.0.1/flashpicker.swf
众所周知,flash文件在调用系统接口时会造成跨域问题,它首先会去找系统根目录下的crossdomain.xml跨域策略资源文件,例:
http://xxx.xxx.com/crossdomain.xml
,若文件不存在,则访问不成功造成上传失败;若crossdomain.xml文件存在,且里边设置了允许falsh所在的域访问,那么通信正常且可正常调用上传接口。crossdomain.xml文件限制了flash是否可以跨域读写数据以及允许从什么地方跨域读写数据,具体写法如下:
The text was updated successfully, but these errors were encountered: