title: Can't use Trello client.js API with localhost 'This request came from an unauthorized domain'
body: <p>I am trying to use the <a href="https://trello.com/docs/gettingstarted/clientjs.html" rel="nofollow">Trello client.js</a> to create an application on a local web server (Visual Studio 2013). When I try to authorize my app, I get this error from Trello.com.</p>
  
  <p><code>This request came from an unauthorized domain</code></p>
  
  <p>I used the <a href="http://jsfiddle.net/E4rLn/" rel="nofollow">jsfiddle example</a> listed in the Trello API docs. I copied all the javascript and referenced the client.js file with my generated key. </p>
  
  <p>I can't find any reference on the internet for that error message. My best guess is that Trello doesn't allow localhost because it needs to talk to the server you are calling it from?</p>
  
  <p>Code I used. I called this from Chrome console and received the error above.</p>
  
  <pre><code>Trello.authorize({
      type: "popup",
      success: onAuthorizea,
      scope: { read: true }
  });
  </code></pre>
  
  <p>I supposed I could authorize my app outside of localhost, then use that token for all future requests to the API, but I don't see an option to supply the token when using the client.js method.</p>