阅读背景:

如何在CakePHP中返回JSON的正确内容类型?

来源:互联网 

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/html' back from CakePHP. How do I set the content-type header correctly?I'm trying to set the content-type header for a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: