Cannot modify header information – headers already sent
环境:laravel 5.2 + phpstudy php5.6 + windows2008
错误:一个ajax无法正常登录,查看xhr以后,发现提示错误包含:
Cannot modify header information – headers already sent…… 和 Automatically populating $HTTP_RAW_POST_DATA is deprecated….
解决办法:查资料的辛苦就不必说了,解决方法如下:
在php.ini中找到
;always_populate_raw_post_data = -1
把;号去掉即可。
噢!评论已关闭。