Refused to frame ‘https://player.twitch.tv/’ because an ancestor violates the following Content Security Policy directive: “frame-ancestors”
When I post a Twitch link on my site, it tries to embed it using the parent=meta.tag instead of parent=greasygamer.com
I just installed a php script for the site, Sngine. It worked fine on xenforo which is still currently greasygamer.com/. The Sngine install is at greasygamer.com/sngine for now, but will be moving it to the main URL once this twitch thing is figured out.
Then it sounds like a bug with sngine. Not really something we can help with.
Lmao here was sngine response
This iframe code is not coming from Sngine but this is what Sngine get from the twitch itself.
Like in here: Embed tests
Sngine use the same library BTW.
So Sngine simply save this HTML code returned and then display it, So there is no way to do so unless you add some code to check if it’s twitch or not and then add some code to do whatever you want,
“From Twitch itself”? What does that mean?
Looking at at the screenshot, the function is called scraper. This suggests that it’s scraping the Twitch page for the Embed code. And is not replacing “meta.tag” with the correct parent.
sngine needs to generate an embed as documented, not via whatever the hell they are doing.
So, again, it’s sngine at fault. Not Twitch.
Yeah I figured that much. The creator of sngine seems like an ass… but I will let them know.
Thanks for your help bud
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.