The work needs to use Baidu developed Ueditor, but the server deployment in the front-end code and back-end code under different domain names, has been resolved the front end of the cross-domain problem of back-end code. However, the upload image in the Ueditor Flash control also involves cross-domain issues, and discovery finds that the cross-domain issue of the upload control can be resolved by adding a crossdomain.xml file under the root of the backend domain name. The contents of the Crossdomain.xml file are as follows:
1 <?XML version= "1.0"?>2 <!DOCTYPE cross-domain-policy SYSTEM "Http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">3 <Cross-domain-policy>4 <Site-controlpermitted-cross-domain-policies= "All"/>5 <Allow-access-fromDomain="*"To-ports="*"Secure= "true"/>6 <Allow-http-request-headers-fromDomain="*"Headers="*"Secure= "true"/>7 </Cross-domain-policy>
The Ps:swfuploader upload control can also be used to cross domains through this method
Flash upload Control cross-domain