Modifying jQuery ajax request Connection header

后端 未结 1 1163
臣服心动
臣服心动 2021-01-19 10:18

I\'m trying to modify the Connection header with the following code with no success

jQuery.ajax({
    url: URL,
    async: boolVariable,
    beforeSend: func         


        
相关标签:
1条回答
  • 2021-01-19 11:21

    According to the standard here you are not allowed to set the Connection header. It will terminate the set header. Also if you try this in webkit the console will output Refused to set unsafe header "Connection" So it looks like you will not be able to do what you want on the client side.

    0 讨论(0)
提交回复
热议问题