feat: allow setting the Origin header and Sec-Fetch-* headers in net.request() (#26135)

This commit is contained in:
LuoJinghua
2020-11-18 06:25:41 +08:00
committed by GitHub
parent b8372fdc29
commit e1cc78f275
5 changed files with 251 additions and 13 deletions

View File

@@ -47,6 +47,7 @@ following properties:
be aborted. When mode is `manual` the redirection will be cancelled unless
[`request.followRedirect`](#requestfollowredirect) is invoked synchronously
during the [`redirect`](#event-redirect) event. Defaults to `follow`.
* `origin` String (optional) - The origin URL of the request.
`options` properties such as `protocol`, `host`, `hostname`, `port` and `path`
strictly follow the Node.js model as described in the