AJAX get custom response headers with CORS
My server sends custom headers along with the response. I get the response
data alright but I cant access to custom headers with jQuery's
getAllResponseHeaders() or AngularJS $http service. All I get is
content-type. When I inspect the request response with DevTools or
fiddler, I can see all the custom headers being sent by the server but I
can't get them from xhr. Is there anyway to access all the headers?
No comments:
Post a Comment