Expand description
net.fetch for sandboxed widgets
(docs/specs/SPEC_USER_WIDGETS_AND_WIDGET_API_2026_10_09.md §6.3).
srv makes the request, not the widget: no cookies, no proxy, no browser
profile, no AgentMux origin. The URL’s origin must match one of the
package’s net: grants, and so must every redirect. The host’s addresses
are resolved once and the connection is pinned to them, so a name can’t
resolve to one address for the check and another for the request. A
private or local address is reachable only through a grant that names it
as an IP address, or localhost for loopback, port included.
Structs§
Constants§
Functions§
- fetch
- Makes the request for a package granted
granted.