add --host to your package.json
--host
package.json
vite doesn't server requests that are not originated from your localhost