Skip to content

Commit

Permalink
add X-FORWARDED headers for proxy requests (#1677)
Browse files Browse the repository at this point in the history
  • Loading branch information
johann-sonntagbauer authored and gaearon committed Feb 28, 2017
1 parent 7c899fc commit 2b824d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/react-scripts/scripts/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ function addMiddleware(devServer) {
onError: onProxyError(proxy),
secure: false,
changeOrigin: true,
ws: true
ws: true,
xfwd: true
});
devServer.use(mayProxy, hpm);

Expand Down

0 comments on commit 2b824d8

Please sign in to comment.