Twitch Embed iframe in iframe

Hi,

we had the embeds not working and implemented the parent parameter that fixed our issues.

But we also have a CMS preview which is rendered in an iframe.
So we have to deal with vorschau.domain.de displaying rendering.domain.de with an embed iframe for twitch channel.

<frame src="https://vorschau.domain.de/irprev_27441007_bf7470030cf52ad7de69d7ce8835f372.html?1326" name="ir_prev_content" frameborder="0">
    <iframe src="https://player.twitch.tv/?channel=pokemon&amp;parent=vorschau.domain.de" frameborder="0" allowtransparency="true" style="width:100% !important;width:600px;height:400px;"></iframe>

First, we got CORS issues and added a CORS header with a value of *. Now we have the same error as we had without parent param. So we tried both parent= rendering.domain.de and parent=vorschau.domain.de.

Unfortunately, we can’t fix it that way.
Do you guys have any clue how to fix this issue?

thanks
Sebastian

To make the preview work you’d also need to include the preview domain and any iframes it has in the nest.

TLDR: don’t bother making the preview work, just make live work

Thx,

I tried to pass both domains but got the “wrong configuration” error message.

How to separate both domains correctly?
I tried , and ; and (whitespace).

It should be

https://player.twitch.tv/?channel=pokemon&parent=vorschau.domain.de&parent=anotherwebsite.com&parent=and.third.website

not , or ; or delimited. You send multiple parent=

1 Like

Hi,

thx for your help. We are using the php embed/embed library.
Unfortunately, it deletes the 2nd parent parameter.

We can’t go around that package, is there a way to pass both parent hops in a different way?

Fix the library! Or don’t use the library.

Though I don’t know why are you using a library.