Skip to content

Commit e4244d6

Browse files
johann-sonntagbauerrandycoulman
authored andcommitted
add X-FORWARDED headers for proxy requests (facebook#1677)
1 parent 9ee2795 commit e4244d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/react-scripts/scripts/start.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,8 @@ function addMiddleware(devServer) {
214214
onError: onProxyError(proxy),
215215
secure: false,
216216
changeOrigin: true,
217-
ws: true
217+
ws: true,
218+
xfwd: true
218219
});
219220
devServer.use(mayProxy, hpm);
220221

0 commit comments

Comments
 (0)