feat: allow setting the Origin header and Sec-Fetch-* headers in net.request() (#26135)
This commit is contained in:
parent
b8372fdc29
commit
e1cc78f275
5 changed files with 251 additions and 13 deletions
4
typings/internal-ambient.d.ts
vendored
4
typings/internal-ambient.d.ts
vendored
|
@ -119,6 +119,10 @@ declare namespace NodeJS {
|
|||
session?: Electron.Session;
|
||||
partition?: string;
|
||||
referrer?: string;
|
||||
origin?: string;
|
||||
hasUserActivation?: boolean;
|
||||
mode?: string;
|
||||
destination?: string;
|
||||
};
|
||||
type ResponseHead = {
|
||||
statusCode: number;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue