# Twitch Website embed

**URL:** <https://discuss.dev.twitch.com/t/twitch-website-embed/29643>\
**Category:** API\
**Created:** [December 25, 2020, 8:28am UTC](https://discuss.dev.twitch.com/t/twitch-website-embed/29643 "2020-12-25T08:28:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nuno\_PP](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/nuno_pp/32/10979_2.png) [@Nuno\_PP](https://discuss.dev.twitch.com/u/Nuno_PP)\
**Post date:** [December 25, 2020, 8:28am UTC](https://discuss.dev.twitch.com/t/twitch-website-embed/29643/1 "2020-12-25T08:28:43Z")

</div>

Hi, I’m trying to put an embed twitch on my website but it is showing that it is not properly configured, any ideas?

\*my goal is to save the link when the user enters and then creates the embed.

```auto
<div class='ipsEmbeddedOther' contenteditable="false">
	<iframe
		src="https://player.twitch.tv/?{$type}={{if $type == 'video'}}v{{endif}}{$source}&autoplay=false"
		height="450"
		width="300"
		allowfullscreen="">
	</iframe>
</div>

```

Error: Refused to display ‘[https://www.twitch.tv/embed-error.html?errorCode=NoParent&content=www.twitch.tv%2Fembed%2Fanomaly%2Fchat](https://www.twitch.tv/embed-error.html?errorCode=NoParent&content=www.twitch.tv%2Fembed%2Fanomaly%2Fchat)’ in a frame because it set ‘X-Frame-Options’ to ‘sameorigin’.

---

<div class="post-metadata">

**Author:** ![Dist](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/dist/32/7192_2.png) [@Dist](https://discuss.dev.twitch.com/u/Dist)\
**Post date:** [December 25, 2020, 11:24am UTC](https://discuss.dev.twitch.com/t/twitch-website-embed/29643/2 "2020-12-25T11:24:02Z")

</div>

You haven’t specified the parents for the embed (if you look at the `errorCode` param of that error url you linked, it gives the `NoParent` error). The docs [https://dev.twitch.tv/docs/embed/video-and-clips](https://dev.twitch.tv/docs/embed/video-and-clips) show that the `parent` param is required.

This means that if your embed is hosted on `https://www.example.com/twitch` that you would need to set the parent to be `parent=www.example.com`, if you also wanted it to work without the `www.` then you’d also need to add `parent=example.com` as well, same with any other parent (some website builders such as Wix will automatically embed iframes within another iframe of their own, which is a parent you would need to add).

---

<div class="post-metadata">

**Author:** ![Nuno\_PP](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/nuno_pp/32/10979_2.png) [@Nuno\_PP](https://discuss.dev.twitch.com/u/Nuno_PP)\
**Post date:** [December 25, 2020, 12:40pm UTC](https://discuss.dev.twitch.com/t/twitch-website-embed/29643/3 "2020-12-25T12:40:26Z")

</div>

Ok, thanks I will try to change it. This code is an extension to the website and is possibly old or wrong.

---

<div class="post-metadata">

**Author:** ![system](https://d2opxh93rbxzdn.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://discuss.dev.twitch.com/u/system)\
**Post date:** [January 24, 2021, 12:40pm UTC](https://discuss.dev.twitch.com/t/twitch-website-embed/29643/4 "2021-01-24T12:40:29Z")

</div>

Closed on January 24, 2021, 12:40pm UTC

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