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 via agent no longer works in vscode #1748

Open
mullr opened this issue May 25, 2023 · 0 comments · May be fixed by #1749
Open

rejectUnauthorized=false via agent no longer works in vscode #1748

mullr opened this issue May 25, 2023 · 0 comments · May be fixed by #1749

Comments

@mullr
Copy link

mullr commented May 25, 2023

If you want to connect to a server using a self-signed cert using node-fetch, the commonly documented technique is to explicitly supply an agent:

const https = require("https");
const agent = new https.Agent({ rejectUnauthorized: false });
fetch("https://localhost/", { agent: agent });

This works fine in node. It used to work fine in vscode as well, but it recently stopped working. They seem to have no interest in fixing this: microsoft/vscode#173314

It would be nice to be able to continue to do this.

@mullr mullr linked a pull request May 25, 2023 that will close this issue
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant