Skip to content

Instantly share code, notes, and snippets.

@aonrobot
Created February 27, 2018 09:24
Show Gist options
  • Save aonrobot/f4aa40f5c03167f8ed5995e1b2874e78 to your computer and use it in GitHub Desktop.
Save aonrobot/f4aa40f5c03167f8ed5995e1b2874e78 to your computer and use it in GitHub Desktop.
jQuery.ajax({
url: API_URL,
data: {header : headerTitle, data : bodyJson},
method: 'POST',
cache:false,
xhrFields:{
responseType: 'blob',
withCredentials: true
},
success: function(result){
exportXLSX(result)
},
error:function(httpObj, result){
console.log('something wrong', httpObj);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment