Languages

Menu
Sites
Language
Twitch iFrame Issue

Trying to get the below iFrame working in Samsung TV web app. Getting the below error with the following config and iFrame html code. Is there any way to resolve this issue?

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

With this config (Removed app id) and code.

<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns:tizen="http://tizen.org/ns/widgets" xmlns="http://www.w3.org/ns/widgets" id="http://yourdomain/Twitchen" version="0.2.2" viewmodes="maximized">

    <tizen:allow-navigation>*.twitch.tv</tizen:allow-navigation>

	<access origin="http://player.twitch.tv" subdomains="true"/>
	<access origin="http://spade.twitch.tv" subdomains="true"/>
    <access origin="*" subdomains="true"></access>
    <content src="index.html"/>
    <feature name="http://tizen.org/feature/screen.size.normal.1080.1920"/>
    <icon src="icon.png"/>
    <tizen:metadata key="http://samsung.com/tv/metadata/prelaunch.support" value="true"/>
    <name>Twitchen</name>
    <tizen:privilege name="http://developer.samsung.com/privilege/network.public"/>
    <tizen:privilege name="http://tizen.org/privilege/tv.audio"/>
    <tizen:privilege name="http://tizen.org/privilege/application.launch"/>
    <tizen:content-security-policy> default-src *; style-src 'self' https://* http://*; object-src 'none'; script-src 'self' http://* https://* 'unsafe-inline' 'unsafe-eval';</tizen:content-security-policy>
    <tizen:profile name="tv-samsung-public"/>
    <tizen:setting screen-orientation="landscape" context-menu="enable" background-support="disable" encryption="disable" install-location="auto" hwkey-event="enable"/>
</widget>
    <iframe 
        src="http://player.twitch.tv/?channel=drdisrespectlive" 
        height="720" 
        width="1280" 
        frameborder="0" 
        scrolling="no"
        allowfullscreen="true"
        sandbox="allow-scripts allow-same-origin">
    </iframe> 

Responses

2 Replies
Marco Buettner

For internet access add follow privilege to config.xml

<tizen:privilege name="http://tizen.org/privilege/internet"/>

PS: how many posts to you want to open?

James Hoegerl

Hey thanks for the condescending comment man. Much appreciated. I want to make as many posts as it takes until someone gives me some valuable information. Which hasn't happened in my 3 attempts. But now I feel much better about the community thanks to that.