How to set Authorization header for transport read in angularJS?

2 posts, 0 answers
  1. Alan Y
    Alan Y avatar
    1 posts
    Member since:
    Jan 2014

    Posted 26 Oct 2016 Link to this post


    I'm trying to add http header to transport read in angularJS.

    I use bellow option, but It did not work. I think this is because JQuery function did not work in angularJS frame. Can you give me some guide?

                beforeSend: function(req) {
                    req.setRequestHeader('Authorization', auth);


    PS, could you give me some information for Kendo UI Integrate angularJS. I am not sure Kendo UI will work perfectly in angularJS. I use angularJS 1.X.

    Thanks very much!



  2. Stefan
    Stefan avatar
    1257 posts

    Posted 28 Oct 2016 Link to this post


    Please check more information on how to set Authorization headers for transport read:

    The same DataSource configuration can be used and AngularJS and it will work as expected.

    Regarding the Kendo UI and AngularJS integration, I can suggest checking the articles in our documentation:

    I hope this is helpful.

    Telerik by Progress
    Build rich, delightful, *native* Angular 2 apps with Kendo UI for Angular 2. Try it out today! Kendo UI for Angular 2 (currently in beta) is a jQuery-free toolset, written in TypeScript, designed from the ground up to offer true, native Angular 2 components.
Back to Top