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 5bce8c5 commit 8591902
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 @@ -212,7 +212,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 8591902

Please sign in to comment.