I am trying to play a youtube video but it gives me errors.
I am sure I have enabled cors too as shown in docs
Errors:
:51279/#/home:1 Access to XMLHttpRequest at 'https://www.youtube.com/youtubei/v1/player?key=AIzaSyA8eiZmM1FaDVjRy-df2KTyQ_vz_yYM39w&prettyPrint=false' from origin 'http://localhost:51279' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
www.youtube.com/youtubei/v1/player?key=AIzaSyA8eiZmM1FaDVjRy-df2KTyQ_vz_yYM39w&prettyPrint=false:1
I am trying to play a youtube video but it gives me errors. I am sure I have enabled cors too as shown in docs Errors:
My Code: