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
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -116,9 +116,11 @@ For the server task, add the configureProxies task before the connect task
116
116
The available configuration options from a given proxy are generally the same as what is provided by the underlying [httpproxy](https://github.com/nodejitsu/node-http-proxy) library
117
117
118
118
#### options.context
119
-
Type: `String`
119
+
Type: `String` or `Array`
120
120
121
-
The context to match requests against. Matching requests will be proxied. Should start with /. Should not end with /
121
+
The context(s) to match requests against. Matching requests will be proxied. Should start with /. Should not end with /
122
+
Multiple contexts can be matched for the same proxy rule via an array such as:
123
+
context: ['/api', 'otherapi']
122
124
123
125
#### options.host
124
126
Type: `String`
@@ -236,4 +238,4 @@ grunt.registerTask('e2etest', function (target) {
236
238
* 0.1.3 Bumped http-proxy dependency to 0.10.2
237
239
* 0.1.4 Added proxy rewrite support (thanks to @slawrence)
238
240
* 0.1.5 Default rejectUnauthorized to false to allow self-signed certificates over SSL
239
-
* 0.1.6 Add xforward option
241
+
* 0.1.6 Add xforward option, added support for context arrays, added debug logging
0 commit comments