TanStackT
TanStack10mo ago
16 replies
technical-ivory

Blocked request

After deploying to Vercel, I got a blocked request error:

"To allow this host, add 'hostname' to server.allowedHosts in vite.config.js."

However, I'm not using vite.config.js — my project uses app.config.ts instead.
I tried adding allowedHosts: ['hostname'], but I'm still getting the same error.
Was this page helpful?