This question has already been answered:
{"result": "Success"} Warning: Cannot modify header information - headers sent by (output started at / home / host1475174/site.ru/htdocs/www/auth.php:65) .ru / htdocs / www / auth.php on line 67
After authorization gives the error. For 2 hours I have been looking for a solution to the problem, probably tried everything.
Lines 65 and 67 from auth.php
curl_exec ($ myCurl);
header ('Location:'. $ urlreturn);