title: nfl data API error
body: <p>I'm trying to parse a simple amount of data using the NFL data API. Grabbing current season.</p>
  
  <p>EG: <a href="http://developer.fantasydata.com/docs/services/300/operations/1114/console" rel="nofollow">http://developer.fantasydata.com/docs/services/300/operations/1114/console</a></p>
  
  <p>I'm using the sample JavaScript code provided directly on that page with a valid, premium, API key and I'm getting an error dialog. Any one familar?</p>
  
  <pre><code>&lt;!DOCTYPE html&gt; 
  &lt;html&gt; 
  &lt;head&gt; 
  &lt;title&gt;JSSample&lt;/title&gt; 
      &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"&gt;&lt;/script&gt; 
  &lt;/head&gt; 
  &lt;body&gt; 
  &lt;script type="text/javascript"&gt; 
      $(function() { 
          var params = { 
              // Specify your developer key 
              key: '1234actualkeyisrighthere', 
          }; 
  
          $.ajax({ 
              // Specify values for path parameters (shown as {...}) 
              url: 'http://api.nfldata.apiphany.com/premium/XML/CurrentSeason?' + $.param(params), 
              type: 'GET', 
              beforeSend: function (xhr) { 
                  debugger; 
              } 
          }) 
          .done(function(data) { 
              alert("success"); 
          }) 
          .fail(function() { 
              alert("error"); 
          }); 
      }); 
  &lt;/script&gt; 
  &lt;/body&gt; 
  &lt;/html&gt; 
  </code></pre>
  
  <p><strong>Error Details:</strong></p>
  
  <p>It's an error dialog pop-up. 'Error' Console reports: XMLHttpRequest cannot load <a href="http://api.nfldata.apiphany.com/premium/XML/CurrentSeason?key=XXXXXXXXXXX" rel="nofollow">http://api.nfldata.apiphany.com/premium/XML/CurrentSeason?key=XXXXXXXXXXX</a>. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '<a href="http://www.sample.com" rel="nofollow">http://www.sample.com</a>' is therefore not allowed access. currentseason.html:1</p>