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