Simple Embedded Twitch Stream Throwing Console Tons of Console Errors

I have embed a twitch stream on my website and its throwing tons of errors which can be seen in the image below.

The code used to embed the stream is as follows:

<iframe src="" height="720" width="1280" frameborder="0" scrolling="no" allowfullscreen="true" id="stream"></iframe>

Code for the chat:

<iframe frameborder="0" scrolling="no" id="chat_embed" src="" height="720" width="320"></iframe>

Is there anyway to get rid of these errors because I think they are messing with other JS on my page.

You have to pay for an SSL certificate?

Also how would that resolve these JS errors produced when embedding a twitch stream?

401s are because you’re not signed in on Twitch (expected), postMessage error is because the embed is not on (expected). The stack traces could be real problems, but if everything works, they can be ignored.

A cross-origin iframe cannot mess with JS on the parent page unless the browser isn’t properly restricting cross-origin access (usually due to insecure configuration or significantly outdated browser).

Hey, that makes sense. Would these errors mess with other JS on the page?

No, since they’re from the iframe.

Okay, thank you!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.