开发者

MooTools - AJAX refused to set unsafe header "Connection"

开发者 https://www.devze.com 2023-02-21 01:47 出处:网络
Refused to set unsafe header \"Connection\" I get this error on Chrome when running a request by ajax (MooTool开发者_Python百科s 1.1) ?

Refused to set unsafe header "Connection"

I get this error on Chrome when running a request by ajax (MooTool开发者_Python百科s 1.1) ?

How to solve it ?


The issue was due to a Mootools 1.12 bug where it is trying to set a protected value during an Ajax request.

See http://www.w3.org/TR/XMLHttpRequest/#the-setrequestheader-method

References: http://www.sourcecoast.com/forums/topic?id=1076&p=1#p4038

0

精彩评论

暂无评论...
验证码 换一张
取 消