Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery ajax CORS

$.ajax({url: "http://localhost:8079/students/add/",type: "POST",crossDomain: true,data: JSON.stringify(somejson)dataType: "json",success: function (response{var resp = JSON.parse(response)alert(resp.status);},error: function (xhr, status) {alert("error");}});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #ajax #CORS
ADD COMMENT
Topic
Name
6+8 =