Skip to content

Commit

Permalink
add X-FORWARDED headers for proxy requests (facebook#1677)
Browse files Browse the repository at this point in the history
  • Loading branch information
johann-sonntagbauer authored and WiNloSt committed Mar 1, 2017
1 parent ef7b04a commit 8862da8
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 8862da8

Please sign in to comment.