`cf dev` with remote bindings ignores `HTTP_PROXY`/`HTTPS_PROXY`

Aperta
#16,959 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
node.js, typescript, vite

Direzione di ricerca

Start by tracing the default cf dev path through @cloudflare/vite-plugin and @cloudflare/remote-bindings, including the API calls that start a session and workerd's connection to the remote preview. Compare those paths with Wrangler's API requests, which already use the proxy. The issue is resolved when both session setup and remote preview traffic honor HTTP_PROXY/HTTPS_PROXY in the affected configurations.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

feature:remote-bindings package:remote-bindings package:vite-plugin

Users behind a corporate proxy can't use cf dev with remote bindings, because its traffic to Cloudflare doesn't go through HTTP_PROXY/HTTPS_PROXY.

  • With the Vite plugin (the default), neither @cloudflare/vite-plugin nor @cloudflare/remote-bindings sends requests through a proxy. Both the API calls that start the remote-bindings session and the traffic to the remote preview go direct.
  • In projects that still use Wrangler, Wrangler's own API calls use the proxy, but workerd connects to the remote preview directly.

A system-wide proxy, such as TUN mode, works around it for now.

Originally requested for wrangler dev --remote in cloudflare/workers-sdk#5162.

Lingua principale
TypeScript
Stelle
4.7k
Fork
1.7k
Merge medio
1g 22h
PR unite (30g)
282

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di cloudflare/workers-sdk

Tutte le issue di cloudflare/workers-sdk

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.