Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
2b824d8b
Commit
2b824d8b
authored
8 years ago
by
Johann Hubert Sonntagbauer
Committed by
Dan Abramov
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
add X-FORWARDED headers for proxy requests (#1677)
parent
7c899fc3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/react-scripts/scripts/start.js
+2
-1
packages/react-scripts/scripts/start.js
with
2 additions
and
1 deletion
+2
-1
packages/react-scripts/scripts/start.js
+
2
-
1
View file @
2b824d8b
...
@@ -220,7 +220,8 @@ function addMiddleware(devServer) {
...
@@ -220,7 +220,8 @@ function addMiddleware(devServer) {
onError
:
onProxyError
(
proxy
),
onError
:
onProxyError
(
proxy
),
secure
:
false
,
secure
:
false
,
changeOrigin
:
true
,
changeOrigin
:
true
,
ws
:
true
ws
:
true
,
xfwd
:
true
});
});
devServer
.
use
(
mayProxy
,
hpm
);
devServer
.
use
(
mayProxy
,
hpm
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment