From 8591902b97c952ce4b3e23530df2d55fff0dc56e 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 a9535e3b404..ecad1a4a020 100644 --- a/packages/react-scripts/scripts/start.js +++ b/packages/react-scripts/scripts/start.js @@ -212,7 +212,8 @@ function addMiddleware(devServer) { onError: onProxyError(proxy), secure: false, changeOrigin: true, - ws: true + ws: true, + xfwd: true }); devServer.use(mayProxy, hpm);