How can I add a custom HTTP header to ajax request with js or jQuery?

前端 未结 9 1343
独厮守ぢ
独厮守ぢ 2020-11-22 03:17

Does anyone know how to add or create a custom HTTP header using JavaScript or jQuery?

9条回答
  •  广开言路
    2020-11-22 04:06

    "setRequestHeader" method of XMLHttpRequest object should be used

    http://help.dottoro.com/ljhcrlbv.php

提交回复
热议问题