This is a migrated thread and some comments may be shown as answers.

Custom Headers in HTML5 Report Viewers

1 Answer 21 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Marcin
Top achievements
Rank 1
Veteran
Marcin asked on 17 Nov 2014, 01:24 PM
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


1 Answer, 1 is accepted

Sort by
0
Marcin
Top achievements
Rank 1
Veteran
answered on 17 Nov 2014, 01:33 PM
Heh
My mistake, I should use ajaxSetup instead of ajax.

Please delete this thread.

Marcin
Tags
General Discussions
Asked by
Marcin
Top achievements
Rank 1
Veteran
Answers by
Marcin
Top achievements
Rank 1
Veteran
Share this question
or