i have rest api in 1 server , application uses rest web services in another.
rest api server https , other it's http.
i need call web service json data, in ie9 when make ajax request every time gives me error. (could cors problem).
to request need set headers on request because need authentication.
in ff works well.
$.ajax({ url: 'https://xxxxxxx/xxxx/xxxxx', cache: false, datatype: 'json', headers: { 'param1': param1, 'param2': param2, 'param3': param3, 'param4': param4 }, success: function(data) { alert("success"); }, error: function(xhr, status, errorthrown) { alert("fails"); } }); how can fix problem? need run app in ie.
ie9 doesn't support cors without shim , ie10 has limited support.
https://github.com/jaubourg/ajaxhooks/blob/master/src/xdr.js
Comments
Post a Comment