@cloudflare/vite-plugin
1.70.1 · 19 Nov 2026MIT12.3M / weekRepositoryHomepagenpmAtom feed
1.70.1 is the newest release of 1.x.
In short
1 new1 fixed2 internal
Release note
Patch Changes
Add a tunnel shortcut hint when CLI shortcuts are printed
The Cloudflare Vite plugin now includes a
t + entertunnel hint alongside the other CLI shortcuts it prints.Honor
X-Forwarded-Protowhen constructing the Worker'srequest.urlWhen running the Vite dev server behind a TLS-terminating reverse proxy or tunnel, the Worker's
request.urlwas alwayshttp://...even though the client reached the server overhttps://.... This caused frameworks that perform Origin/Host checks (e.g. CSRF protection) to reject requests with403.The Vite plugin now reads the
X-Forwarded-Protoheader from the incoming request and uses it to set the protocol ofrequest.url. If the header is absent or invalid, the connection protocol is used as before. The same handling is applied to WebSocket upgrade URLs.Fixes #13801.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.