I\'m trying to set the content-type header for a JSON response accessed with an AJAX GET request. I\'ve followed tutorials on blogs and the bakery but I always receive \'text/ht
I've also just had this problem, and solved it by using:
$this->RequestHandler->respondAs('text/x-json');
Also make sure that "debug" in your config file is set to less than 2 otherwise the header will not be set.