Hi there,
I want to create a Browser Source to play clips during stream, but I dont want to have a HTTP server running just for a file I could refer locally.
The thing is, twitch is requirering this “parent” parameter in the URL, but Idk what it is for a local file ?
To be more clear : the URL that I use is file:///C:/Users/Azyrod/Documents/Twitch/Code/PlayEmbedClip.html
.
In that page is a very simple bit of HTML with an iframe with static url for testing :
<iframe referrerpolicy="no-referrer" sandbox="allow-same-origin allow-scripts allow-popups" src='https://clips.twitch.tv/embed?clip=JoyousGeniusRabbitHeyGirl-9owuUeWU12SCXVzf&parent=localhost' width="400" height="244" style="position: absolute; top: 0px; left: 0px; max-width: 400px; max-height: 244px;"></iframe>
This doesn’t work because I am not “localhost” :
Refused to frame 'https://clips.twitch.tv/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors http://localhost:* https://localhost:*".
What I am supposed to do ?