preview server: accept any Host for public demo tunnels
This commit is contained in:
+4
-1
@@ -16,6 +16,9 @@ export default defineConfig({
|
||||
},
|
||||
preview: {
|
||||
port: 4173,
|
||||
host: true
|
||||
host: true,
|
||||
// `vite preview` is our public demo server (trycloudflare etc.) — accept
|
||||
// any Host header; static assets only, nothing to poison.
|
||||
allowedHosts: true
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user