Add authentication headers when downloading a file