From 8862da8786b97a5e58f50e01b1f52ba484f11b2b Mon Sep 17 00:00:00 2001 From: Johann Hubert Sonntagbauer Date: Tue, 28 Feb 2017 15:07:29 +0100 Subject: [PATCH] add X-FORWARDED headers for proxy requests (#1677) --- packages/react-scripts/scripts/start.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/react-scripts/scripts/start.js b/packages/react-scripts/scripts/start.js index 913ece9eb6c..5d2fd8a8523 100644 --- a/packages/react-scripts/scripts/start.js +++ b/packages/react-scripts/scripts/start.js @@ -220,7 +220,8 @@ function addMiddleware(devServer) { onError: onProxyError(proxy), secure: false, changeOrigin: true, - ws: true + ws: true, + xfwd: true }); devServer.use(mayProxy, hpm);