Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery ajax CORS

$.ajax({url: "http://localhost:8079/clients/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
2+8 =