+ 4

How to overcome same crossorigin problem to fetch an url?

It shows an error 'crossorigin problem' when i am fetch the url. fetch('https://youtu.be/ukNa-H0eTes') why this happens? Please make help!

4th Nov 2019, 2:39 AM
Mahesh Muttinti
2 ответов
+ 6
Cross Origin Resource Sharing has to be enabled on the web server. Try using an iframe, or a url that has CORS enabled.
4th Nov 2019, 4:34 AM
Moses Odhiambo
Moses Odhiambo - avatar