title: Origin null is not allowed by Access-Control-Allow-Origin
body: <p>I'm currently working with the SoundCloud API and would like to have a track embed when a button is clicked.</p>
  
  <p>I get two errors:</p>
  
  <p>XMLHttpRequest cannot load <a href="http://soundcloud.com/oembed.json?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F48419073" rel="nofollow">http://soundcloud.com/oembed.json?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F48419073</a>. Origin null is not allowed by Access-Control-Allow-Origin.</p>
  
  <p>AND</p>
  
  <p>Uncaught TypeError: Cannot read property 'html' of null </p>
  
  <p>Here is my code:</p>
  
  <pre><code>&lt;button onclick="getPopular()"&gt;+1&lt;/button&gt;
  &lt;div id="track"&gt;&lt;/div&gt;
  
  &lt;script src="http://connect.soundcloud.com/sdk.js" type="text/JavaScript"&gt;&lt;/script&gt;
  &lt;script type="text/JavaScript"&gt;
      SC.initialize({
          client_id: "**************",
      });
  
      var getPopular = function() {
          SC.get("/tracks", {limit: 1}, function(tracks) {
              var track = tracks[0];
              alert("Latest track: " + track.title);
              SC.oEmbed(track.uri, document.getElementById("track"));
              });
          };
  &lt;/script&gt;
  </code></pre>
  
  <p>I use an alert in my code to let me know that it is actually taking information from the SoundCloud API.  I'm just not sure what else is preventing it from embedding.</p>
  
  <p>Thanks, ahead of time, or looking at my question.</p>
  
  <ul>
  <li>jiggabits</li>
  </ul>