There seems to be whitespace before the php open tag <?php
in MY_Controller.php.
Check all PHP files and remove the whitespace before the <?php
tag. If there is a space or new line, the body of the http request is started, and you can't add new headers to the http request.