About Ajax asynchronous requests for data-less issues 302 cross-domain requests

Source: Internet
Author: User

The general question of the project is this

The data of the online consulting module is to request data through Ajax asynchronous loading, then dynamically parse and display

Request code for the front page

Background action:

In addition, this project also has a login authority authentication, if not logged in the background or the login information is invalid, then the request that the background action will automatically jump into the background of the login page

Console printing error is that the JSON data returned to the browser in the background is not getting

Solutions

Two solutions, 1 is to find the source, clear the redirect instructions, 2 is to modify the schema, adjust the location of the verification.

Reference article: https://www.cnblogs.com/wonyun/p/5696838.html

And then directly to the action of the login verification cancellation problem is resolved

About Ajax asynchronous requests for data-less issues 302 cross-domain requests

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.