use 127.0.0.1 in stead of localhost
use 127.0.0.1 in stead of localhost gateway If the local gateway is queried via 127.0.0.1 in stead of via localhost, it will not attempt to redirect requests to a subdomain of localhost. While subdomains of localhost [should work][1], they don't currently do in many libraries including requests on macOS. [1]: https://tools.ietf.org/html/rfc6761#section-6.3