Flash upload Control cross-domain

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.