Image of the Console Error in Chrome
虽然我在使用标题时在邮递员中获取令牌:{'Content-Type':'application / x-www-form-urlencoded'},
在发送响应之前在浏览器中打印某些内容时,通常会发生此错误。确保在返回json之前你的代码中没有任何echo或print。
echo
print
希望这可以帮助