I am working on a chrome extension which is intended to find related YouTube videos on a music review site. Up until recently, it worked without issues. However, chrome recently enabled CORB by default and now my requests to the YouTube API get blocked with the following error:
Cross-Origin Read Blocking (CORB) blocked cross-origin response with MIME type application/json. See https://www.chromestatus.com/feature/5629709824032768 for more details
Specifically, the API I'm trying to access is "https://www.googleapis.com/youtube/v3/search".
I am making an XMLHttpRequest to send the request.
request.open("GET", url, true);
request.setRequestHeader('accept', 'application/json; charset=UTF-8');
request.send();
Is the problem with my request?