Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rejectUnauthorized: false #102

Open
framebassman opened this issue Jul 3, 2018 · 3 comments
Open

rejectUnauthorized: false #102

framebassman opened this issue Jul 3, 2018 · 3 comments

Comments

@framebassman
Copy link

How I can set 'rejectUnauthorized: false' like in 'request' lib?

@ForbesLindesay
Copy link
Owner

This would require you to submit pull requests to https://github.com/ForbesLindesay/http-basic and https://github.com/then/then-request and then this library to add that feature. I don't need it personally, so I'm unlikely to ever get to it myself.

@nadir-promo
Copy link

If you want it to ignore TLS errors you can set NODE_TLS_REJECT_UNAUTHORIZED environment variable to 0:
NODE_TLS_REJECT_UNAUTHORIZED=0 node script.js

@ForbesLindesay
Copy link
Owner

ForbesLindesay commented Mar 25, 2019

Thanks @nadir-promo I'm going to mark this issue as locked, since this solution seems plenty good enough to me. If this doesn't work, you can open a separate new issue detailing your problem.

@ForbesLindesay ForbesLindesay pinned this issue Mar 25, 2019
Repository owner locked as resolved and limited conversation to collaborators Mar 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants