Embedding twich elements

Good afternoon everybody,

I’m currently trying to embed player and collection on my website and even if I tried many things, it’s still not working…

<iframe
    src="https://player.twitch.tv/?channel=<channel>&muted=true&parent=<iframe_host>"
    scrolling="no"
    allowfullscreen="true">
</iframe>

But always the same response :

player.twitch.tv is blocked

player.twitch.tv refused to connect.

ERR_BLOCKED_BY_RESPONSE

My server properties : http (yes) https (no) ssl (yes)
http://ynbcontent.com/iframe/livestream-2.html

Link to the broken page please

http://ynbcontent.com/iframe/livestream-2.html

Your website needs to be at https embeds only work on https

So you need to force http visitors to the https url

testynbcollection is not a valid collection ID

Everything else seems correct.

1 Like

Thank you a lot for your help, I know already for the collection ID (it was just to prepare my code).

Unfortunately, my server doesn’t offer HTTPS url, is there another way to embed it ?

maybe embedding twitch on a third-party HTTPS server and embeding thisone in my actual server ?

https://ynbcontent.com/iframe/livestream-2.html

Works fine for me

You just need to force

http://ynbcontent.com/iframe/livestream-2.html to https://ynbcontent.com/iframe/livestream-2.html

No, as one of the URL’s in the chain won’t be over SSL.

1 Like

You are the best, I love you bro !

Enjoy your best end of day !

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