XMLHttpRequest (with limitations)
E856201
XMLHttpRequest (with limitations) is a browser API that allows web workers to perform restricted HTTP requests for loading resources asynchronously.
Statements (45)
| Predicate | Object |
|---|---|
| instanceOf | web API feature ⓘ |
| alternativeTo | fetch() in workers ⓘ |
| availableIn | modern web browsers ⓘ |
| canSend |
HTTP GET requests
ⓘ
HTTP POST requests ⓘ other HTTP methods depending on browser support ⓘ |
| category | client-side networking API ⓘ |
| definedBy | WHATWG NERFINISHED ⓘ |
| definedIn | HTML Living Standard NERFINISHED ⓘ |
| enables |
asynchronous resource loading in workers
ⓘ
network communication from web workers ⓘ |
| goal | avoid blocking the main UI thread ⓘ |
| hasEvent |
onerror
ⓘ
onload ⓘ onprogress ⓘ |
| hasFeature |
event-driven progress notifications
ⓘ
readyState change events ⓘ responseText access ⓘ responseXML access (with restrictions) ⓘ |
| hasLimitation |
UI-related features are unavailable in workers
ⓘ
access to some response types may be restricted ⓘ cannot directly manipulate DOM ⓘ only HTTP and HTTPS protocols are allowed ⓘ subject to same-origin policy unless CORS is enabled ⓘ synchronous requests are disallowed in workers ⓘ |
| hasMethod |
open()
ⓘ
send() ⓘ setRequestHeader() ⓘ |
| introducedFor | off-main-thread networking ⓘ |
| lifecycle | created via new XMLHttpRequest() in worker context ⓘ |
| notSupportedIn | ServiceWorkerGlobalScope (where fetch is preferred) ⓘ |
| partOf | XMLHttpRequest API NERFINISHED ⓘ |
| relatedTo |
Fetch API
NERFINISHED
ⓘ
XMLHttpRequest ⓘ |
| requires | worker global scope ⓘ |
| runsIn |
background thread
ⓘ
worker context ⓘ |
| securityModel | same-origin policy ⓘ |
| subjectTo |
CORS rules
ⓘ
Content Security Policy NERFINISHED ⓘ |
| supports |
asynchronous HTTP requests
ⓘ
resource loading ⓘ |
| usedIn |
DedicatedWorkerGlobalScope
NERFINISHED
ⓘ
SharedWorkerGlobalScope NERFINISHED ⓘ Web Workers NERFINISHED ⓘ |
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.