mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-01-13 09:00:30 +08:00
add X-FORWARDED headers for proxy requests (#1677)
This commit is contained in:
committed by
Dan Abramov
parent
7c899fc392
commit
2b824d8bc3
3
packages/react-scripts/scripts/start.js
vendored
3
packages/react-scripts/scripts/start.js
vendored
@@ -220,7 +220,8 @@ function addMiddleware(devServer) {
|
||||
onError: onProxyError(proxy),
|
||||
secure: false,
|
||||
changeOrigin: true,
|
||||
ws: true
|
||||
ws: true,
|
||||
xfwd: true
|
||||
});
|
||||
devServer.use(mayProxy, hpm);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user