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
+12
Original file line number
Diff line number
Diff line change
@@ -342,6 +342,18 @@ proxyServer.listen(8015);
342
342
"*": ""
343
343
}
344
344
```
345
+
* **cookiePathRewrite**: rewrites path of `set-cookie` headers. Possible values:
346
+
* `false` (default): disable cookie rewriting
347
+
* String: new path, for example `cookiePathRewrite: "/newPath/"`. To remove the path, use `cookiePathRewrite: ""`. To set path to root use `cookiePathRewrite: "/"`.
348
+
* Object: mapping of paths to new paths, use `"*"` to match all paths.
349
+
For example keep one path unchanged, rewrite one path and remove other paths:
350
+
```
351
+
cookiePathRewrite: {
352
+
"/unchanged.path/": "/unchanged.path/",
353
+
"/old.path/": "/new.path/",
354
+
"*": ""
355
+
}
356
+
```
345
357
* **headers**: object with extra headers to be added to target requests.
346
358
* **proxyTimeout**: timeout (in millis) when proxy receives no response from target
0 commit comments