changeOrigin

Changes the origin of the host header to the target URL.

Example

vite {
server {
proxy("/foo", "http://localhost:4567", changeOrigin = true)
}
}

External resources