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

Add option to ignore https certificate validation #71

Closed
claudiosantos92 opened this issue Apr 5, 2017 · 3 comments
Closed

Add option to ignore https certificate validation #71

claudiosantos92 opened this issue Apr 5, 2017 · 3 comments
Labels

Comments

@claudiosantos92
Copy link

claudiosantos92 commented Apr 5, 2017

id like to know on which part of the code do i need to add this "NODE_TLS_REJECT_UNAUTHORIZED=0"
because im trying to access the API and getting this error

404 Not Found
Not found because of proxy error: Error: self signed certificate

@Rob--W
Copy link
Owner

Rob--W commented Apr 10, 2017

Set an environment variable with that value. Via the command line (Windows: https://ss64.com/nt/set.html, Linux/macOS: https://ss64.com/bash/export.html).

Via Node.js:

process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';

(for future references, this question has also been asked in #16 and #26).

@tsjnsn
Copy link

tsjnsn commented Jul 26, 2017

try this:

cors_proxy.createServer({
    ...
    httpProxyOptions: {
      secure: false
    }
})

@Rob--W
Copy link
Owner

Rob--W commented Mar 26, 2021

This was fixed by 3c87a51 when I fixed #341 (which is a duplicate of this bug).

@Rob--W Rob--W closed this as completed Mar 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants