Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
650
Custom authorization token
posted

I would like to set a authorization token in the headers of the ajax call the grid makes to authenticate with an API i am using. How can i do this? I saw a solution which involves setting custom ajax request headers but this would add the authorization token for every jquery ajax request i make, which is undesirable. 

I am using the following at the moment - 

$.ajaxSetup({
headers: { 'Authorization': authorizatinToken }
});