Skip to content

Commit 8591902

Browse files
johann-sonntagbauergaearon
authored andcommitted
add X-FORWARDED headers for proxy requests (#1677)
1 parent 5bce8c5 commit 8591902

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
@@ -212,7 +212,8 @@ function addMiddleware(devServer) {
212212
onError: onProxyError(proxy),
213213
secure: false,
214214
changeOrigin: true,
215-
ws: true
215+
ws: true,
216+
xfwd: true
216217
});
217218
devServer.use(mayProxy, hpm);
218219

0 commit comments

Comments
 (0)