This post is a simple answers to CORS issues on WebAPI without being over complex
http://rajcodes.blogspot.co.uk/2012/07/mvc4-web-api.html
Type call might be
$.ajax({ url: 'http://SERVER/api/address/test/33345345', contentType: "application/json", type: "GET", datatype: "json", success: function(data){ $("#call1").html(data); }, error: function (e) { $("#call1").html("FAILED TO GET ADDRESS"); } });
No comments:
Post a Comment
Comments are welcome, but are moderated and may take a wee while before shown.