Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

automatic jquery interceptor with token

$.ajaxSetup({
    beforeSend: function (xhr) {
        xhr.setRequestHeader('Authorization', 'Token 123')
    }
});
Source by www.diwebsity.com #
 
PREVIOUS NEXT
Tagged: #automatic #jquery #interceptor #token
ADD COMMENT
Topic
Name
8+6 =