ueditor 置于A域,图片置于B域,B域需放flash跨域策略文件crossdomain.xml,如下
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*.xx1.com" />
<allow-access-from domain="*.xx2.com" />
<allow-http-request-headers-from domain="*" headers="*"/>
</cross-domain-policy>
修改ueditor配置文件ueditor.config.js
//图片上传配置区
,imageUrl:"http://abupload.xxx.com/imageUp.php" //图片上传提交地址
,imagePath:"http://abupload.xxx.com/"