Google Browser error: Cross-domain problem processing (access-control-allow-origin) _ for local testing of the quick solution

Source: Internet
Author: User

The error message is as follows:

XMLHttpRequest Cannot load http://www.xxxx.com/264/Data/GetScreenInfo. No 'access-control-allow-origin  

Today needs to do a local test, the HTML JS effect involves cross-domain pull data issues, chrome error and reject data extraction,,,

There is a convenient way to implement data cross-domain in Google, simply Type a value for the browser --disable-web-security (this value has a space before the O ( ∩_∩) o~), click OK.

Such as:

TIP: Restart your browser first, and then open the document you want to test.

View Links:

CORS (cross-domain resource sharing) http://www.360doc.com/content/14/0106/11/15643_343005039.shtml

AJAX cross-domain implementations and hidden dangers in the new http://huaidan.org/archives/2729.html standard

Cross-domain access to resource  http://technet.microsoft.com/zh-cn/sqlserver/e36ceae6-ff36-4a1b-9895-75f0eacfe94c

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.