#Are there any known Vite breaking changes between 5.1.6 and 5.1.8?

4 messages · Page 1 of 1 (latest)

wild wren
#

I started to get an error message after an upgrade from 5.1.6 to 5.1.8.

Blocked request. This host (".............") is not allowed. To allow this host, add "................" to server.allowedHosts in vite.config.js.

Is it expected? What configuration should I add to allow any hostname for my Astro website?

lone canyon
#

Same. Did you figure it out? @wild wren

timber glen
rigid marsh
#

Hi @timber glen! I am having a follow up issue to this one: Seems like setting the allowedHosts only works for the server configuration but not for preview. Other people seem to encounter this issue as well (e.g. https://github.com/withastro/astro/issues/13060). Any ideas?

GitHub

The web framework for content-driven websites. ⭐️ Star to support our work! - Issues · withastro/astro