Menu

Vite 8.4 Turns Your Dev Server Into an Allow-List — Here's How to Opt In Today
📰

Vite 8.4 Turns Your Dev Server Into an Allow-List — Here's How to Opt In Today

DEV Community: vite·Sh Raj·9 days ago
#cHe219gV
#devtovite#devto#dev#assets#vite
Long article (1881 words) — no AI summary yet.
Reading 0:00
15s threshold

Vite 8.4 landed on November 26, 2026, and its headline feature is the kind of change you should adopt before it becomes mandatory: an opt-in allow-list for dev server file serving. The Vite team has said plainly that they intend to make it the default in the next major version — so the time to test it against your project is now, while it's still optional and the failure mode is a config tweak, not a broken build.

This post walks through what changed, how to enable the allow-list in about ten minutes, what will break (and how to fix it), and the rest of the 8.4 release — including dynamic imports that can finally recover from a failed fetch.

The problem: a block-list can't keep up

Since Vite 2.7, the dev server has had a server.fs file serve check — a security feature that stops the dev server from handing out files if it becomes reachable by a threat actor.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.