add X-FORWARDED headers for proxy requests (#1677)

This commit is contained in:
Johann Hubert Sonntagbauer
2017-02-28 15:07:29 +01:00
committed by Dan Abramov
parent 7c899fc392
commit 2b824d8bc3

View File

@@ -220,7 +220,8 @@ function addMiddleware(devServer) {
onError: onProxyError(proxy),
secure: false,
changeOrigin: true,
ws: true
ws: true,
xfwd: true
});
devServer.use(mayProxy, hpm);