You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,8 @@ grunt.initConfig({
37
37
host:'10.10.2.202',
38
38
port:8080,
39
39
https:false,
40
-
changeOrigin:false
40
+
changeOrigin:false,
41
+
xforward:false
41
42
}
42
43
]
43
44
}
@@ -148,6 +149,16 @@ Default: false
148
149
149
150
Whether to reject self-signed certificates when https: true is set. Defaults to accept self-signed certs since proxy is meant for development environments.
150
151
152
+
#### options.xforward:
153
+
Type: `Boolean`
154
+
Default: false
155
+
156
+
Whether to add x-forward headers to the proxy request, such as
157
+
"x-forwarded-for": "127.0.0.1",
158
+
"x-forwarded-port": 50892,
159
+
"x-forwarded-proto": "http"
160
+
161
+
151
162
#### options.appendProxies
152
163
Type: `Boolean`
153
164
Default: true
@@ -225,3 +236,4 @@ grunt.registerTask('e2etest', function (target) {
225
236
* 0.1.3 Bumped http-proxy dependency to 0.10.2
226
237
* 0.1.4 Added proxy rewrite support (thanks to @slawrence)
227
238
* 0.1.5 Default rejectUnauthorized to false to allow self-signed certificates over SSL
0 commit comments