live-server
live-server copied to clipboard
Proxy not sending the right Host header
Issue description
When using live-server as a reverse proxy, the Host
header doesn't sent to the back-end url. For example: live-server --proxy=/:http://uaptc.azurewebsites.net
. When I navigate to http://127.0.0.1:8080
, it will shown 404 Web Site not found. because live-server are not sending Host
header to the proxy url.
Software details
- Command line used for launching
live-server --proxy=/:http://uaptc.azurewebsites.net
: - OS: Windows 10 (Version 10.0.16299.371)
- Browser (if browser related): Chrome 65
- Node.js version: v9.11.1
-
live-server
version: 1.2.0
This just burned me too, thank you for the fix @doggy8088