It sounds as though you have basic authentication turned on, probably triggered by your change in environment.
This will be set in your application somewhere - probably in _ss_environment.php or _config.php of your project.
API Docs for BasicAuth are here: http://api.silverstripe.org/3.1/class-BasicAuth.html