Blocked Request when using a reverse proxy

Blocked request. This host (“bolt.XXX.com”) is not allowed.
To allow this host, add “bolt.XXX.com” to server.allowedHosts in vite.config.js.

i had a look through the files and vite.config.js does not exist to add this?

i am trying to open up bolt.diy behind my reverse proxy but m running into this error. wondering if anyone knows a fix for it the vite.config.js doesnt seem to exist when i search for it?

Hey,

the vite.config.TS is directly in the root of the repo:

I also made a video for hosting on a VPS with nginx:

1 Like

Hello, noob here! I have the same issue as @krazor
Do i need to add a string to server.allowHosts or set it to yes.
Can someone show the line that needs to be added and where exactly in vite.config.ts, in order to fix this issue?

Cheers!