Optional
anonymousOptional
contextCan be an object and will be assigned to context of the response object.
Optional
headersSome special headers are also allowed:
Cookie
Host
Origin
Referer
User-Agent
Optional
onabortOptional
onerrorOptional
onloadOptional
onloadendOptional
onloadstartOptional
onprogressOptional
onreadystatechangeOptional
ontimeoutOptional
passwordPassword for authentication.
Optional
timeoutTime to wait for the request, none by default.
URL relative to current page is also allowed.
Optional
userUser 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
.