Javascript-how to prevent cross-origin requests from being blocked by plug-ins such as Adblock?

Source: Internet
Author: User
I have A project like this here. I need to set some cookies for cross-origin, and insert some records to the database. To facilitate the description of the problem, I will first define Site A: www. a. comB site: www. B .com our situation is like this. Station A is the domain name of the partner, there may be many, real... I have a project like this here. I need to set some cookies for cross-origin, and insert some records to the database. To facilitate Problem description, I will first define the following:

  • Site A: www.a.com

  • Site B: www. B .com

This is the case. Station A is the domain name of the partner, and there may be many domain names. The actual code is still deployed on our server (the server where Station B is located, station B is our server. For ordinary users, the existence of Site B may not be felt throughout the use process. In fact, it is also similar to A consortium, but the whole process from user browsing to consumption is completed under the domain name of Station.

In order to record the cooperation situation, when A key page of Station A is displayed

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.