Wednesday, February 10, 2010
Refused to get unsafe header "X-JSON"
Was doing some development involving the prototype.js framework and ran into this error message in Safari while trying to use Ajax.Request. The URL I was requesting via Ajax.Request was on a production server, but the page I was testing was on my laptop (i.e., localhost). So, Safari refused, protecting against doing a request against a different server. As soon as I moved the page into production it worked.