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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 251 additions and 13 deletions

View file

@ -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;