Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3831

Youtube API Cross-Origin Read Blocking (CORB) blocked cross-origin response

$
0
0

When I try to use Youtube API I get this:

error: No 'Access-Control-Allow-Origin the header is present on the requested resource'

Origin 'http://localhost:3000' is therefore not allowed access.Cross-Origin Read Blocking (CORB) blocked cross-origin response https://developers.google.com/apis-explorer/ with MIME type text/html.

I kind of found a solution for that by running chrome using

chrome.exe --user-data-dir="C:/Chrome dev session" --disable-web-security

but I still can't get data from api in JSON from.When I try to fetch the data I all i get is:

<!doctype html>

Google APIs Explorer</script-->

My link is https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.search.list?part=snippet&q=coding&type=video&_h=1& and it works fine when I try it on Youtube APIs explorer.


Viewing all articles
Browse latest Browse all 3831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>