Details
-
Bug
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
0.10.0, 0.11.0, 0.12.0
-
None
Description
When using ajax requests via jquery custom headers are not added to the request.
Adding beforeSend to the jQuery.ajax will solve this Problem.
beforeSend: function (xreq) {
Object.keys(thriftTransport.customHeaders).forEach(function (prop) {
xreq.setRequestHeader(prop, thriftTransport.customHeaders[prop]);
});
}
Attachments
Issue Links
- links to