<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="https://developers.smarttv-alliance.org/forum/feed.php?f=6&amp;t=174" />

<title>developers.smarttv-alliance.org</title>
<subtitle>Developers forum</subtitle>
<link href="https://developers.smarttv-alliance.org/forum/index.php" />
<updated>2014-08-05T09:32:40-07:00</updated>

<author><name><![CDATA[developers.smarttv-alliance.org]]></name></author>
<id>https://developers.smarttv-alliance.org/forum/feed.php?f=6&amp;t=174</id>
<entry>
<author><name><![CDATA[rob.1_1]]></name></author>
<updated>2014-08-05T09:32:40-07:00</updated>
<published>2014-08-05T09:32:40-07:00</published>
<id>https://developers.smarttv-alliance.org/forum/viewtopic.php?t=174&amp;p=289#p289</id>
<link href="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=174&amp;p=289#p289"/>
<title type="html"><![CDATA[CORS Origin null from STA SDK 3.0 ?]]></title>

<content type="html" xml:base="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=174&amp;p=289#p289"><![CDATA[
It's disappointing, when you consider the LG webOS TV emulator and the Samsung SMART TV emulator, both based on VirtualBox images can do it ... is there no way to turn off checking by the browser JUST in the emulator image (Chrome can do -ignore-security-settings) ?<p>Statistics: Posted by <a href="https://developers.smarttv-alliance.org/forum/memberlist.php?mode=viewprofile&amp;u=6646">rob.1_1</a> — Tue Aug 05, 2014 9:32 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Support_STA]]></name></author>
<updated>2014-08-04T19:21:14-07:00</updated>
<published>2014-08-04T19:21:14-07:00</published>
<id>https://developers.smarttv-alliance.org/forum/viewtopic.php?t=174&amp;p=288#p288</id>
<link href="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=174&amp;p=288#p288"/>
<title type="html"><![CDATA[CORS Origin null from STA SDK 3.0 ?]]></title>

<content type="html" xml:base="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=174&amp;p=288#p288"><![CDATA[
Hi,<br /><br />As you mentioned, emulator treats application as file:// not <!-- m --><a class="postlink" href="localhost://">localhost://</a><!-- m -->. <br />So doing ajax from file URL isinconsistently, e.g: Chromeentirely disallows them.<br />For solution, you can upload your source to a server or using your staging server to check it with emulator.<br /><br />Regards,<br />STA Support<p>Statistics: Posted by <a href="https://developers.smarttv-alliance.org/forum/memberlist.php?mode=viewprofile&amp;u=2056">Support_STA</a> — Mon Aug 04, 2014 7:21 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[rob.1_1]]></name></author>
<updated>2014-08-04T02:10:09-07:00</updated>
<published>2014-08-04T02:10:09-07:00</published>
<id>https://developers.smarttv-alliance.org/forum/viewtopic.php?t=174&amp;p=287#p287</id>
<link href="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=174&amp;p=287#p287"/>
<title type="html"><![CDATA[CORS Origin null from STA SDK 3.0 ?]]></title>

<content type="html" xml:base="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=174&amp;p=287#p287"><![CDATA[
If you look at the code I posted (which is from index.html of the app) you'll see I am posting an xmlhttprequest to a url and expecting a JSON response ... the server has CORS support and should be returning the correct response headers ...<p>Statistics: Posted by <a href="https://developers.smarttv-alliance.org/forum/memberlist.php?mode=viewprofile&amp;u=6646">rob.1_1</a> — Mon Aug 04, 2014 2:10 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Support_STA]]></name></author>
<updated>2014-08-03T18:41:25-07:00</updated>
<published>2014-08-03T18:41:25-07:00</published>
<id>https://developers.smarttv-alliance.org/forum/viewtopic.php?t=174&amp;p=286#p286</id>
<link href="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=174&amp;p=286#p286"/>
<title type="html"><![CDATA[CORS Origin null from STA SDK 3.0 ?]]></title>

<content type="html" xml:base="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=174&amp;p=286#p286"><![CDATA[
Hi,<br /><br />Did you try to load a html file from your source? (In case,we have not tried before, but we think load() function of Jquery would be better).<br />Besides, hope this <a href="http://www.w3.org/TR/access-control/" class="postlink">document</a>will be helpful for you.<br /><br />Regards,<br />STA Support<p>Statistics: Posted by <a href="https://developers.smarttv-alliance.org/forum/memberlist.php?mode=viewprofile&amp;u=2056">Support_STA</a> — Sun Aug 03, 2014 6:41 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[rob.1_1]]></name></author>
<updated>2014-08-01T03:09:43-07:00</updated>
<published>2014-08-01T03:09:43-07:00</published>
<id>https://developers.smarttv-alliance.org/forum/viewtopic.php?t=174&amp;p=285#p285</id>
<link href="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=174&amp;p=285#p285"/>
<title type="html"><![CDATA[CORS Origin null from STA SDK 3.0 ?]]></title>

<content type="html" xml:base="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=174&amp;p=285#p285"><![CDATA[
When I try to use the following code from the sdk 3.0 emulator I get a 405 - Method Not Allowed, because XmlHttpRequest cannot load my URL - Origin Null not allowed by Access-Control-Allow-Origin ... CORS is working with identical code on other platforms , is it perhaps because the browser in the emulator treats application script domain as file:// (and sets to null) rather than localhost:// ?<br /><br />I feel I must be missing something, or everyone would have the same issue ?<br /><br />--------------------<br />function postToURL(url, process,data){<br /><br />  if (XHRObj !== null) {<br />    XHRObj.destroy();<br />   <br />  }<br />  XHRObj = new XMLHttpRequest();<br /><br />  if (XHRObj)<br />  {<br />  console.log(\"setting up POST\");<br />  <br /> <br />    if (XHRObj.overrideMimeType)<br />    {<br />   XHRObj.overrideMimeType('text/plain');<br />    }<br />   <br />    XHRObj.withCredentials = true;<br /><br />    XHRObj.open(\"POST\", url, true);<br />   <br />    Process = process;<br />   <br />    XHRObj.onreadystatechange = readyStateChanged;<br /><br />    console.log(\"object opened - \" + url);<br />   <br />    var auth = window.btoa(LoggedInUser + \":\" + LoggedInPassword);<br />   <br />    console.log(\"credentials encoded\");<br />    console.log(\"Auth header is \" + auth);<br />   <br />    XHRObj.setRequestHeader(\"Authorization\", \"Basic \" + auth);<br />//     XHRObj.setRequestHeader(\"Access-Control-Allow-Origin\",'*');<br />    XHRObj.setRequestHeader(\"Content-Type\", \"application/json; charset=utf-8\");<br />   <br />    console.log(\"request header set\");<br />  <br />    XHRObj.send(data);<br />  }<br /><br /> <br />  console.log(\"XHR request processed , readyState is \" + XHRObj.readyState);<br />}<br />--------------------<p>Statistics: Posted by <a href="https://developers.smarttv-alliance.org/forum/memberlist.php?mode=viewprofile&amp;u=6646">rob.1_1</a> — Fri Aug 01, 2014 3:09 am</p><hr />
]]></content>
</entry>
</feed>