Tag:Lost cookie

  • Solve the problem of Ajax cross domain request data cookie loss

    Time:2021-3-5

    front end: Take jQuery as an example Need to join Copy codeThe code is as follows: xhrFields: {             withCredentials: true         },         crossDomain: true, $.ajax({         type: postType,         url: url,         data: postData || ”,         xhrFields: {             withCredentials: true         },         crossDomain: true,         success: function () {             […]