Sets additional HTTP headers that will be sent with all subsequent requests from the page. Pass an empty object to clear previously set extra headers. Example: setExtraHTTPHeaders(headers: { "X-Custom-Header": "MyValue" }) Returns true if the headers were successfully set.

Definition

setExtraHTTPHeaders(
  headers: Headers!
): Boolean!

Arguments

headers: Headers!

A JSON object representing the headers to set. Keys are header names, values are header values.

Returns

Boolean!

The Boolean scalar type represents true or false.