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 } });
Hello Robert Al-Jaar,
I'm glad that you find this information helpful.
Please let me know if you need further assistance with this matter.
Best regards,Martin PavlovInfragistics, Inc.
yes it did thanks!
Did you have a chance to try my suggestion? Did you manage to resolve your issue?
There is no built in functionality for this in the $.ig.DataSource, so you can log it as a product idea. What I can suggest you is to try using jQuery.ajaxPrefilter().