Frame-ancestors problem with embed twitch iframe

I am trying to use the twitch embed iframe on my website. It worked on localhost but when I put the website online and after changing the parent parameter to my website domain I get following error: Refused to frame ‘https://player.twitch.tv/’ because an ancestor violates the following Content Security Policy directive: “frame-ancestors https://projectpui.ddns.net”.

My iframe in the html looks like this:

My website URL is: https://projectpui.ddns.net:35353/project-pui-1.0/pages/index.xhtml

If I open the Twitch in my browser by itself it works.

Screenshots:

I use a no-ip free dynamic dns.

Thank you guys for the help in advance!

Embeds are not supported on non-standard ports. It’s expecting port 443 because it’s over HTTPS, where as you’re using port 35353.

1 Like

Thank you, that worked now. Thought using port 35353 would provide additional security, but I guess it can’t be helped

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