[ https://issues.apache.org/jira/browse/THRIFT-4737?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James E. King III reopened THRIFT-4737: --------------------------------------- Assignee: James E. King III > thrift.js does not use customHeaders in jqRequest > ------------------------------------------------- > > Key: THRIFT-4737 > URL: https://issues.apache.org/jira/browse/THRIFT-4737 > Project: Thrift > Issue Type: Bug > Components: JavaScript - Library > Affects Versions: 0.10.0, 0.11.0, 0.12.0 > Reporter: Christian Bürckert > Assignee: James E. King III > Priority: Trivial > Fix For: 0.12.0 > > Time Spent: 20m > Remaining Estimate: 0h > > When using ajax requests via jquery custom headers are not added to the > request. > > Adding beforeSend to the jQuery.ajax will solve this Problem. > {code:java} > beforeSend: function (xreq) { > Object.keys(thriftTransport.customHeaders).forEach(function > (prop) { > xreq.setRequestHeader(prop, > thriftTransport.customHeaders[prop]); > }); > } > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)