Update "Use Dev Proxy with Node.js" for native `fetch` proxy support and certificate trust
Mantenedores costumam responder em até 1 dia
@waldekmastykarz já está trabalhando nisso.
Desde 5/11/2026.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
Problem
The Node.js page states that native fetch "doesn't support configuring a proxy", and recommends NODE_TLS_REJECT_UNAUTHORIZED=0 for certificate errors. Both are outdated:
- Node.js 24+ (and 22.21+) routes
fetchandhttp(s)throughHTTP(S)_PROXYwhenNODE_USE_ENV_PROXY=1or--use-env-proxyis set. NODE_EXTRA_CA_CERTSwith the Dev Proxy root certificate is the safe alternative to disabling TLS verification. The certificate can be fetched withGET /proxy/rootCertificate?format=crt.
In all five evaluated runs, the agent worked this out from model knowledge rather than the docs. An agent that followed the page would disable TLS validation, or conclude that native fetch can't be proxied.
Proposal
- Rewrite the "Native Node.js fetch API" section around
NODE_USE_ENV_PROXY, including the version floor. - Replace
NODE_TLS_REJECT_UNAUTHORIZED=0withNODE_EXTRA_CA_CERTS, showing how to obtain the certificate through the API or CLI. - For older Node versions, keep the fallbacks: undici
EnvHttpProxyAgentorglobal-agent.
Found while evaluating how coding agents use Dev Proxy: VS Code + GitHub Copilot Chat with Claude Sonnet 5.5, Dev Proxy 4.0.0 on Windows, 5 runs of the task "add a CI script that starts Dev Proxy in the background, starts and stops recording through the API around npm start, and shuts Dev Proxy down through the API".
- Linguagem predominante
- C#
- Estrelas
- 841
- Forks
- 90
- Merge médio
- 2d 10h
- PRs com merge (30d)
- 63
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de dotnet/dev-proxy
-
ExecutionSummaryPlugin: internal log messages leak into the report as an "Unknown" categoryTalvez já em andamento @waldekmastykarz assumiu há 2 dias. Abertabug work in progress
dotnet/dev-proxy#2097 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Add `devproxy cert export` to write the root certificate to a fileTalvez já em andamento @waldekmastykarz assumiu há 2 dias. Abertawork in progress
dotnet/dev-proxy#2085 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Reference the API-inventory preset from the CI/CD and Record docsTalvez já em andamento @waldekmastykarz assumiu há 2 dias. Abertadocumentation work in progress
dotnet/dev-proxy#2083 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Document the shutdown contract for `POST /proxy/stopProxy`Talvez já em andamento @waldekmastykarz assumiu há 2 dias. Abertadocumentation work in progress
dotnet/dev-proxy#2081 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
`devproxy --detach` blocks callers that capture its outputTalvez já em andamento @waldekmastykarz assumiu há 2 dias. Abertawork in progress
dotnet/dev-proxy#2080 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
Todas as issues de dotnet/dev-proxy
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 1 dia
-
Sample solution restore fails with NU1109 (Microsoft.Extensions.Logging.Abstractions downgrade)Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
ardalis/CleanArchitecture#1150 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 82/100
reacher-z/Awesome-REA#3585 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 64/100
resend/resend-dotnet#174 ·
-
Add Vigil (BofStudios/vigil)Abertaarea:data coverage
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 68/100
reacher-z/Awesome-CUA#5039 ·
Mantenedores costumam responder em até 19 dias