What you have as written looks like it wouldn’t work, since the redirect:
/cors-proxy/* /:splat 200!
Would turn whatever is passed into a root relative url, and even if the full url made it through the various parsing, you would end up with:
/https://xyz.mp4
Testing with the playground it appears that the target url must start with a / or be a destination domain url itself, so you cannot have a destination of :slug or https://:slug, but could have https://www.destination.com/:slug
If you aren’t really trying to throw “any url at all at it” you could probably do something like:
@vincentsong I know what your intention is, but my understanding is that it’s not possible due to the limitations that I mentioned.
You may have been following this article:
At the top of the article it mentions:
Update 2021-10-27 : Turns out Netlify has deprecated the ability to do this—and this post is specifically called out in the deprecation announcement. Oops.
The specific thread from Netlify outlining that what you’re trying to do, (an ‘open proxy’), has been removed is here: