Skip to content

Commit 8862da8

Browse files
johann-sonntagbauerWiNloSt
authored andcommitted
add X-FORWARDED headers for proxy requests (facebook#1677)
1 parent ef7b04a commit 8862da8

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
@@ -220,7 +220,8 @@ function addMiddleware(devServer) {
220220
onError: onProxyError(proxy),
221221
secure: false,
222222
changeOrigin: true,
223-
ws: true
223+
ws: true,
224+
xfwd: true
224225
});
225226
devServer.use(mayProxy, hpm);
226227

0 commit comments

Comments
 (0)