How to overcome same crossorigin problem to fetch an url? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 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 Réponses
+ 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