I'm using the YouTube HTML5 embed player in an Angular app and I'm seeing these 401 errors pop up on page load (Chrome). Videos still play fine, but I'm wondering what's going on. I've tried pausing AdBlock and I see the same errors.
www-embed-player.js:301 POST https://www.youtube.com/youtubei/v1/log_event?alt=json&key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9xx 401 ()www-embed-player.js:301 POST https://www.youtube.com/youtubei/v1/log_interaction?alt=json&key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9xx 401 ()I've been using this code for months and haven't seen this until now.
This is the code that's failing:
function Ce(a, b, c, d, e, f, g) { function h() { 4 == (k && "readyState"in k ? k.readyState : 0) && b && Pd(b)(k) } c = void 0 === c ? "GET" : c; d = void 0 === d ? "" : d; var k = se(); if (!k) return null;"onloadend"in k ? k.addEventListener("loadend", h, !1) : k.onreadystatechange = h; k.open(c, a, !0); f && (k.responseType = f); g && (k.withCredentials = !0); c = "POST" == c; if (e = xe(a, e)) for (var m in e) k.setRequestHeader(m, e[m]),"content-type" == m.toLowerCase() && (c = !1); c && k.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); k.send(d); return k}