OptionalanonymousOptionalbinarySend the data string as a blob. This is for compatibility with Tampermonkey/Greasemonkey, where only string type is allowed in data.
OptionalcontextCan be an object and will be assigned to context of the response object.
OptionaldataData to send with the request, usually for POST and PUT requests.
OptionalheadersSome special headers are also allowed:
CookieHostOriginRefererUser-AgentOptionalmethodHTTP method, default as GET.
OptionalonabortOptionalonerrorOptionalonloadOptionalonloadendOptionalonloadstartOptionalonprogressOptionalonreadystatechangeOptionalontimeoutOptionaloverrideA MIME type to specify with the request.
OptionalpasswordPassword for authentication.
OptionalresponseOne of the following:
text (default value)jsonblobarraybufferdocumentOptionaltimeoutTime to wait for the request, none by default.
URL relative to current page is also allowed.
OptionaluserUser for authentication.
When set to
true, no cookie will be sent with the request and the response cookies will be ignored. The default value isfalse.