Custom Headers in HTML5 Report Viewers

2 posts, 0 answers
  1. Marcin
    Marcin avatar
    187 posts
    Member since:
    Jan 2011

    Posted 17 Nov 2014 Link to this post

    Hello
    One of my requirement is add custom header to each request, however, even if I set:
    $.ajax({
                type: "POST",
                beforeSend: function (request) {
                    request.setRequestHeader("Some-Code", myCode);
                }
            });

    It is not send during accessing report web api.

    Kind Regards
    Marcin


  2. Marcin
    Marcin avatar
    187 posts
    Member since:
    Jan 2011

    Posted 17 Nov 2014 in reply to Marcin Link to this post

    Heh
    My mistake, I should use ajaxSetup instead of ajax.

    Please delete this thread.

    Marcin
Back to Top