# Embedded chat does not load after login

**URL:** <https://staging-discuss.dev.twitch.com/t/embedded-chat-does-not-load-after-login/16399>\
**Category:** Chat and IRC\
**Created:** [June 29, 2018, 9:18am UTC](https://staging-discuss.dev.twitch.com/t/embedded-chat-does-not-load-after-login/16399 "2018-06-29T09:18:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eiron](https://avatars.discourse-cdn.com/v4/letter/e/6de8d8/32.png) [@Eiron](https://staging-discuss.dev.twitch.com/u/Eiron)\
**Post date:** [June 29, 2018, 9:18am UTC](https://staging-discuss.dev.twitch.com/t/embedded-chat-does-not-load-after-login/16399/1 "2018-06-29T09:18:33Z")

</div>

Hello,  
I’m trying to embed a Twitch channel and chat in a website. I’ve tried different ways (the one in the docs and using the iframes provided by the “Share” button directly on the channel page) and I have the same issue with all of them.

If the user is already logged in when loading the page, it’s fine. However, if an anonymous user tries to send a message in the chat, the login box appears, but when submitting the form, the chat does not load and stays white, with this error in the console :

```
Refused to display 'https://www.twitch.tv/passport-callback#access_token=XXXXXX&scope=chat_login+user_read+user_subscriptions+user_presence_friends_read&state=%7B%22next%22%3A%22https%3A%2F%2Fwww.twitch.tv%2Fembed%2Fcrocodyle_lol%2Fchat%22%2C%22nonce%22%3A%22c0cfb5e7409ce885be1004b5fa3a7184%22%7D' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

```

I’ve checked on several websites embedding Twitch that I know and all of them appears to have the exact same issue.  
Is there something I can do, or is it something Twitch guys are working on ?  
I didn’t find any answer so far, except the announcement topic about the end of legacy chat embed, but it didn’t help.

Thank you for your time 🙂

EDIT : I’m using the “[https://www.twitch.tv/embed/channel/chat](https://www.twitch.tv/embed/channel/chat)” src style, and not the old deprecated one.

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://staging-discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [June 29, 2018, 9:40am UTC](https://staging-discuss.dev.twitch.com/t/embedded-chat-does-not-load-after-login/16399/2 "2018-06-29T09:40:52Z")

</div>

From the TwitchDev server this is a “known” issue floating about that Twitch is looking into

---

<div class="post-metadata">

**Author:** ![Eiron](https://avatars.discourse-cdn.com/v4/letter/e/6de8d8/32.png) [@Eiron](https://staging-discuss.dev.twitch.com/u/Eiron)\
**Post date:** [June 29, 2018, 4:51pm UTC](https://staging-discuss.dev.twitch.com/t/embedded-chat-does-not-load-after-login/16399/3 "2018-06-29T16:51:18Z")

</div>

Ok, thanks a lot for your answer !

---

<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:** [July 29, 2018, 4:51pm UTC](https://staging-discuss.dev.twitch.com/t/embedded-chat-does-not-load-after-login/16399/4 "2018-07-29T16:51:22Z")

</div>

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