Update "Use Dev Proxy with Node.js" for native `fetch` proxy support and certificate trust
Los mantenedores suelen responder en 1 día
@waldekmastykarz ya está trabajando en esto.
Desde el 5/11/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
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".
- Lenguaje dominante
- C#
- Estrellas
- 841
- Forks
- 90
- Merge medio
- 2 d 10 h
- PR fusionados (30 d)
- 63
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de dotnet/dev-proxy
-
ExecutionSummaryPlugin: internal log messages leak into the report as an "Unknown" categoryPosiblemente ocupada @waldekmastykarz la tomó hace 1 día. Abiertobug work in progress
dotnet/dev-proxy#2097 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Add `devproxy cert export` to write the root certificate to a filePosiblemente ocupada @waldekmastykarz la tomó hace 1 día. Abiertowork in progress
dotnet/dev-proxy#2085 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Reference the API-inventory preset from the CI/CD and Record docsPosiblemente ocupada @waldekmastykarz la tomó hace 1 día. Abiertodocumentation work in progress
dotnet/dev-proxy#2083 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Document the shutdown contract for `POST /proxy/stopProxy`Posiblemente ocupada @waldekmastykarz la tomó hace 1 día. Abiertodocumentation work in progress
dotnet/dev-proxy#2081 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
`devproxy --detach` blocks callers that capture its outputPosiblemente ocupada @waldekmastykarz la tomó hace 1 día. Abiertowork in progress
dotnet/dev-proxy#2080 · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de dotnet/dev-proxy
Issues similares
-
needs attention untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet#3666 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
stryker-mutator/stryker-net#3974 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
JiaFeiMiao-K-Cat/DiscImageStudio#171 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
DDOS VulnerbilityAbiertoS: Untriaged
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
DeltaV-Station/Delta-v#6711 ·
Los mantenedores suelen responder en 1 día