MooTools - AJAX refused to set unsafe header "Connection"
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
精彩评论