I am trying to embed my twitch stream into my wix website. It was working for the past few weeks but all of a sudden it stopped. I am not sure what happened. But when I look in the developer console of google chrome I see the following error string: "Refused to frame ‘https://embed. Twitch because an ancestor violates the following Content Security Policy directive: “frame-ancestors https:// ff247d54-a3ca-4fa8-b615-4c58d7f011b3.htmlcomponentservice .com”."
The code below is what I am using to embed my stream. Please assist! Thank you.
<div id="twitch-embed"></div> <script src="https://embed.twitch. tv/embed/v1.js"></script> <script type="text/javascript"> new Twitch.Embed("twitch-embed", { width: '100%', height: '100%', channel: "sourceinvite" }); </script>
This is the website page where you can see that it is now broken for some reason… I’m thinking its something to do with the add-in for embedding html code because I can embed this code any where including in the forum (as seen below) and it seems to work.
Please assist. Thank you!