Proxy
Introduction to the proxy#
The proxy has two functions and is required to self host the project entirely.
No. 2 only applies if you are also deploying the client.
-
The proxy is used to bypass CORS-protected URLs on the client side, allowing users to make requests to CORS protected endpoints without a backend server. The proxy is made using Nitro by UnJS which supports building the proxy to work on multiple providers including Cloudflare Workers, AWS Lambda and more...
-
For site admins (self hosters), the proxy is also used to bypass m3u8 stream header restrictions for sites with origin locked streams. Because of this active restriction, this proxy needs to be hosted on a VPS, platform, or home server that's IP is NOT blocked by the desired stream.
On the following page there are guides to set up the proxy on Cloudflare, Netlify, etc. However, due to this IP restriction the site admin cannot host there. Normal users are still able to.