Closed jrgm closed 7 years ago
Or, I guess, in development, running without TLS is easier. But this service cannot be configured to use TLS - https://github.com/mozilla-services/ip-reputation-js-client/blob/master/lib/client.js#L31.
followRedirect
can be disabled by default, and strictSSL
can be conditioned on the scheme used (http vs. https).
So the options could be:
Alternatively, just pass through a service url to request and infer strictSSL from the scheme e.g.
https://tigerblood.stage.mozaws.net/ -> {uri: "https://tigerblood.stage.mozaws.net/", followRedirect: false, strictSSL: true}
http://127.0.0.1:8080/ -> {uri: "http://127.0.0.1:8080/", followRedirect: false, strictSSL: false}
For consideration, but shouldn't this service not be plaintext?