How to set the Origin Request Header
问题 I want to send an AJAX request to a remote API. function Gettest(CourseID) { var param = { "CourseID": CourseID}; param = JSON.stringify(param); $.ajax({ type: "Post", url: apiurl + "Course/DelCoursetargetedaudience", contentType: "application/json; charset=utf-8", data: param, dataType: "json", success: function (data) { }, error: function (response) { } }); }; But I need to change the origin name, before sending the request. Please refer to the image below. 回答1: In short: you cannot. As