# Simple Embedded Twitch Stream Throwing Console Tons of Console Errors

**URL:** <https://staging-discuss.dev.twitch.com/t/simple-embedded-twitch-stream-throwing-console-tons-of-console-errors/12012>\
**Category:** API\
**Created:** [September 15, 2017, 10:29am UTC](https://staging-discuss.dev.twitch.com/t/simple-embedded-twitch-stream-throwing-console-tons-of-console-errors/12012 "2017-09-15T10:29:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![baddubii](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/baddubii/32/24190_2.png) [@baddubii](https://staging-discuss.dev.twitch.com/u/baddubii)\
**Post date:** [September 15, 2017, 10:29am UTC](https://staging-discuss.dev.twitch.com/t/simple-embedded-twitch-stream-throwing-console-tons-of-console-errors/12012/1 "2017-09-15T10:29:03Z")

</div>

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="http://player.twitch.tv/?channel=ChannelName" 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="http://www.twitch.tv/ChannelName/chat?darkpopout" height="720" width="320"></iframe>`

 ![errors](https://d1d6mrmdu7ztse.cloudfront.net/uploads/default/original/2X/2/2740f866f7f88b0b52018140e19546831c8b9b4f.PNG)

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

---

<div class="post-metadata">

**Author:** ![baddubii](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/baddubii/32/24190_2.png) [@baddubii](https://staging-discuss.dev.twitch.com/u/baddubii)\
**Post date:** [September 15, 2017, 1:14pm UTC](https://staging-discuss.dev.twitch.com/t/simple-embedded-twitch-stream-throwing-console-tons-of-console-errors/12012/3 "2017-09-15T13:14:15Z")

</div>

You have to pay for an SSL certificate?

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

---

<div class="post-metadata">

**Author:** ![3ventic](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/3ventic/32/298_2.png) [@3ventic](https://staging-discuss.dev.twitch.com/u/3ventic)\
**Post date:** [September 15, 2017, 2:50pm UTC](https://staging-discuss.dev.twitch.com/t/simple-embedded-twitch-stream-throwing-console-tons-of-console-errors/12012/4 "2017-09-15T14:50:17Z")

</div>

401s are because you’re not signed in on Twitch (expected), postMessage error is because the embed is not on [twitch.tv](http://twitch.tv) (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).

---

<div class="post-metadata">

**Author:** ![baddubii](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/baddubii/32/24190_2.png) [@baddubii](https://staging-discuss.dev.twitch.com/u/baddubii)\
**Post date:** [September 15, 2017, 3:04pm UTC](https://staging-discuss.dev.twitch.com/t/simple-embedded-twitch-stream-throwing-console-tons-of-console-errors/12012/5 "2017-09-15T15:04:39Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![3ventic](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/3ventic/32/298_2.png) [@3ventic](https://staging-discuss.dev.twitch.com/u/3ventic)\
**Post date:** [September 15, 2017, 3:05pm UTC](https://staging-discuss.dev.twitch.com/t/simple-embedded-twitch-stream-throwing-console-tons-of-console-errors/12012/6 "2017-09-15T15:05:08Z")

</div>

No, since they’re from the iframe.

---

<div class="post-metadata">

**Author:** ![baddubii](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/baddubii/32/24190_2.png) [@baddubii](https://staging-discuss.dev.twitch.com/u/baddubii)\
**Post date:** [September 15, 2017, 3:05pm UTC](https://staging-discuss.dev.twitch.com/t/simple-embedded-twitch-stream-throwing-console-tons-of-console-errors/12012/7 "2017-09-15T15:05:31Z")

</div>

Okay, thank you!

---

<div class="post-metadata">

**Author:** ![system](https://d2spem0quai2ol.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://staging-discuss.dev.twitch.com/u/system)\
**Post date:** [October 15, 2017, 3:05pm UTC](https://staging-discuss.dev.twitch.com/t/simple-embedded-twitch-stream-throwing-console-tons-of-console-errors/12012/8 "2017-10-15T15:05:33Z")

</div>

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