Fix localhost requests behind proxy environments.