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 randycoulman committed May 8, 2017
1 parent 9ee2795 commit e4244d6
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 @@ -214,7 +214,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 e4244d6

Please sign in to comment.