Languages

Menu
Sites
Language
Iframe cross origin issue. Twitch.

Using twitch embed code here https://github.com/justintv/Twitch-API/blob/master/embed-video.md to put an iframe in the web application and I'm getting this error. Any help is appreciated.

 

 

 

 

Blocked a frame with origin "https://player.twitch.tv" from accessing a frame with origin "file://". The frame requesting access has a protocol of "https", the frame being accessed has a protocol of "file". Protocols must match.

Responses

5 Replies
Armaan-Ul- Islam

Hello,

You may try following:

Instead of using http:// or https:// in the url you're defining in your scripts or forms, you can just use //. That will automatically 'fill in' the same protocol as the one you're using now.

Please check these posts for details:

http://stackoverflow.com/questions/21525511/the-frame-requesting-access-has-a-protocol-of-https-the-frame-being-accessed

http://stackoverflow.com/questions/18877275/the-frame-requesting-access-has-a-protocol-of-https-the-frame-being-accessed

 

James Hoegerl

Changing the url to http, https, nor // has solved the issue. Is this a chroma thing or tizen thing?

 

Armaan-Ul- Islam

I would suggest you to post on:

 

Twitch Developers Forum

https://discuss.dev.twitch.tv/

 

Samsung Forum: Smart TV

http://developer.samsung.com/forum/en                                                                                                               

 

Thank you.

James Hoegerl

I see people using iFrames to embed thingsi n the tizen apps, why would this be any different?

James Hoegerl

I've done the former. I'll try the latter. Thanks.