Answer the question
In order to leave comments, you need to log in
How to bypass CORS from client side?
Actually the problem:
https://codepen.io/Energy2/pen/arePaG
An error appears in the browser console
Access to XMLHttpRequest at ' https://vod-secure.twitch.tv/c637cb4e408bbbefaba4_... ' from origin ' https:// s.codepen.io ' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
How can I get around without resorting to proxying through my server?
Documentation How does VLC media player
deal with this ?
Answer the question
In order to leave comments, you need to log in
And what about VLC? This is a separate application. There may not be (most likely) a CORS check at all, because that's only relevant in the browser.
For the browser, accordingly, you need to create a browser extension with access rights to the necessary sites - it will be able to ignore CORS, having such rights. And a regular tab cannot simply access other sites at different addresses.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question