Expand description
The host’s fetch proxy: how a page reads cross-origin responses that the
site does not allow it to (CORS). The workspace host the page is admitted
to offers one: [host] is its implementation, which tilo-server serves
and, in development, tilo-fetch-proxy.
Structs§
Enums§
Constants§
- ERROR_
HEADER - FINAL_
URL_ HEADER - FORWARD_
PREFIX - Prefix of headers the proxy restores to their real name, both ways.
- MARKER_
HEADER - MARKER_
PARAM - SESSION_
HEADER - SESSION_
PARAM - VERSION
Functions§
- configure
- Enable the host’s proxy at
endpoint, or disable it withNone. Hosts call this, not apps: every proxied request carries the app’s headers and body to the endpoint, so it must be the page’s own host or the workspace host the page is admitted to. - current
- The proxy in use: the host’s
configurechoice, else what the page names inglobalThis.__tiloFetchProxy, else none. - endpoint
- media_
url - The URL a page element that cannot send headers (a media element) loads
targetfrom throughproxy. - route
- unwrap_
response