Open
Description
Describe the bug
hi, i've recently updated vite to 6.0.9, the main change being the allowedHosts server conf field,
it's said in the documentation that if set to true, it will accept any hosts, but even when setting it to true i get the error:
Blocked request. This host ("hidden") is not allowed.
To allow this host, add "hidden" to server.allowedHosts
in vite.config.js.
(maybe i could be dumb but it really doesn't seem to work)
Reproduction
google.com
Steps to reproduce
No response
System Info
System:
OS: Linux 6.8 Ubuntu 24.04.1 LTS 24.04.1 LTS (Noble Numbat)
CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
Memory: 4.68 GB / 15.34 GB
Container: Yes
Shell: 5.9 - /usr/bin/zsh
Binaries:
Node: 18.19.1 - /usr/bin/node
npm: 9.2.0 - /usr/bin/npm
Browsers:
Chrome: 132.0.6834.83
npmPackages:
@vitejs/plugin-react: ^4.2.0 => 4.2.1
vite: 6.0.9 => 6.0.9
Used Package Manager
npm
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.