# Embedding Channels Error

**URL:** <https://discuss.dev.twitch.com/t/embedding-channels-error/26930>\
**Category:** API\
**Created:** [July 4, 2020, 11:23am UTC](https://discuss.dev.twitch.com/t/embedding-channels-error/26930 "2020-07-04T11:23:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hayduns](https://avatars.discourse-cdn.com/v4/letter/h/74df32/32.png) [@hayduns](https://discuss.dev.twitch.com/u/hayduns)\
**Post date:** [July 4, 2020, 11:23am UTC](https://discuss.dev.twitch.com/t/embedding-channels-error/26930/1 "2020-07-04T11:23:11Z")

</div>

HI everyone,  
i have some issues with embedding,

my website is : [http://www.shakaam.eu](http://www.shakaam.eu) ( on the “live” page),

i used this code :

```
    <div class="twitch" id="twitch-embed"></div>

    <script src="https://embed.twitch.tv/embed/v1.js"></script>

    <script type="text/javascript">
        new Twitch.Embed("twitch-embed", {
            width: 1100,
            height: 480,
            channel: "shakaam",
            parent: ["www.shakaam.eu" , "shakaam.eu"]
        });
    </script>

```

```auto

and i encounter a problem : "Refused to frame 'https://embed.twitch.tv/' because an ancestor violates the following Content Security"

Someone can give me some advice for fix this problem ?

(Ps: i apologize for my bad english )
```

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [July 4, 2020, 11:45am UTC](https://discuss.dev.twitch.com/t/embedding-channels-error/26930/2 "2020-07-04T11:45:54Z")

</div>

> [@hayduns](#):
>
> my website is : [http://www.shakaam.eu](http://www.shakaam.eu) ( on the “live” page),

Your website needs to be on SSL/HTTPS

http is no longer supported

---

<div class="post-metadata">

**Author:** ![hayduns](https://avatars.discourse-cdn.com/v4/letter/h/74df32/32.png) [@hayduns](https://discuss.dev.twitch.com/u/hayduns)\
**Post date:** [July 4, 2020, 11:46am UTC](https://discuss.dev.twitch.com/t/embedding-channels-error/26930/3 "2020-07-04T11:46:37Z")

</div>

thx

---

<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:** [August 3, 2020, 11:46am UTC](https://discuss.dev.twitch.com/t/embedding-channels-error/26930/4 "2020-08-03T11:46:38Z")

</div>

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