mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
net: Don't ignore the referer header in net.request (#23386)
This commit is contained in:
@@ -386,6 +386,7 @@ class ClientRequest extends Writable implements Electron.ClientRequest {
|
||||
}
|
||||
return ret;
|
||||
};
|
||||
this._urlLoaderOptions.referrer = this._urlLoaderOptions.extraHeaders.referer || '';
|
||||
const opts = { ...this._urlLoaderOptions, extraHeaders: stringifyValues(this._urlLoaderOptions.extraHeaders) };
|
||||
this._urlLoader = createURLLoader(opts);
|
||||
this._urlLoader.on('response-started', (event, finalUrl, responseHead) => {
|
||||
|
||||
Reference in New Issue
Block a user