i have situation doing login using javascript ajax(post) call(which gives me access tokens). after login, in success method want redirect user dashboard, using page reload(which document.location.href does). while redirecting dashboard, want set access tokens in headers. how can achieve ?
you can following way:
xhr.setrequestheader('custom-header', 'value');
Comments
Post a Comment