Chameron
Chameron

Reputation: 2984

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 (MooTools 1.1) ?

How to solve it ?

Upvotes: 1

Views: 3076

Answers (1)

Marçal Juan
Marçal Juan

Reputation: 1342

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

Upvotes: 3

Related Questions