Closed r6047736 closed 6 years ago
Hi @r6047736 this is not meant to be used in a browser, Youtube will never add CORS headers to allow you the usage.
Note that there are some services that act as a reverse proxy to prevent this kind of issue. Here's a small list (not endorsing any of them)
With @Haroenv solution, that would imply to fork and update manually the URL of youtube.
Cheers.
Failed to load https://youtube.com/get_video_info?video_id=xxxxxxx: Redirect from 'https://youtube.com/get_video_info?video_id=xxxxxxx' to 'https://www.youtube.com/get_video_info?video_id=xxxxxxx' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:4200' is therefore not allowed access.