Forwards requests to upstream streaming providers while handling headers and authentication.
Data Parameter Format:
The data parameter must be a encodeURIComponent() encoded JSON object:
{
"url": "https://upstream-provider.com/stream.m3u8",
"headers": {
"Referer": "https://provider.com",
"User-Agent": "Mozilla/5.0",
"more": "headers..."
}
}
The frontend does not have to care about these data objects, since the url fields from the backend response should automatically do that already.
Content-Type Handling: You will get that content type back, which you would, if you were requesting the url directly.
Caching:
encodeURIComponent() encoded JSON object containing url and optional headers.
Example (decoded): {"url":"https://example.com/stream.m3u8","headers":{"Referer":"https://provider.com"}}
^[A-Za-z0-9_-]+$Upstream response proxied successfully
The response is of type string.