Posts by user1812116 • 17 points
2 posts
-
0
votes2
answers48
viewsA: xmlhttprequest native function does not overwrite by passing user token in header
You can use the setRequestHeader method. Xmlhttprequest.setRequestHeader("Usertoken", 123); You must make this call after the Xmlhttprequest.open method and before the Xmlhttprequest call.send…
-
0
votes2
answers48
viewsA: xmlhttprequest native function does not overwrite by passing user token in header
Using Jquery, I believe the following solution will solve your problem: $.ajaxSetup({ headers: { 'TOKEN': 123 } });