jquery – Cross domain Ajax POST
Question: Good afternoon. Trying to pass plain text from min.example.com to api.example.com var data = $(“form”).serialize() $.ajax({ url: ‘http://api.example.com/v1/’ + dept, type: ‘POST’, crossDomain: true, success: function(response){ alert(‘ajax complide’); alert(response); }, error: function (responseData, textStatus, errorThrown) { console.log(‘POST failed.’); } }); Getting -> [HTTP/1.0 403 FORBIDDEN 1036ms] Response header for …