Files
electron/docs/api/structures/protocol-request.md
T
Samuel Attard f8335b6542 feat: identify the requesting frame and initiator on network, auth and download events (#53685)
* feat: identify the requesting frame and initiator on network, auth and download events

* webRequest listener details gain `initiator`, the origin that issued the
  request (kept from the original request across redirects, as in Chrome's
  webRequest API)
* protocol.handle() requests and ProtocolRequest gain `initiator`
* DownloadItem gains getInitiatorOrigin(); session 'will-download' gets a
  trailing `frame`
* session 'preconnect' gets a trailing `frame`
* specs for each

* docs: add API history PR reference
2026-09-07 18:31:56 +00:00

437 B

ProtocolRequest Object

  • url string
  • referrer string
  • initiatorOrigin string (optional) - The origin that issued the request (for example https://example.com, or null for an opaque origin). Absent for requests the browser started itself. Unlike referrer, this is not controlled by the requesting page.
  • method string
  • uploadData UploadData[] (optional)
  • headers Record<string, string>