Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-4737

thrift.js does not use customHeaders in jqRequest

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 0.10.0, 0.11.0, 0.12.0
    • 0.13.0
    • JavaScript - Library
    • 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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jking3 James E. King III
            Christian.Buerckert Christian Bürckert
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m

                Slack

                  Issue deployment