title: REST API Error: Refused to connect to ... because it violates the following Content Security Policy directive:
body: <p>I am trying to update my status on twitter using the REST API to "Update Status".</p>
  
  <p>I am posting it on Twitter's own site, this is what I'm posting:</p>
  
  <pre><code>$.post("https://api.twitter.com/1.1/statuses/update.json?status=Hello")
  </code></pre>
  
  <p>However I get the error</p>
  
  <blockquote>
    <p>Refused to connect to
    '<a href="https://api.twitter.com/1.1/statuses/update.json?status=Hello" rel="nofollow">https://api.twitter.com/1.1/statuses/update.json?status=Hello</a>'
    because it violates the following Content Security Policy directive:
    "connect-src graph.facebook.com pay.twitter.com
    analytics.twitter.com upload.twitter.com 'self'".</p>
  </blockquote>
  
  <p>Can anyone help? I'm just finding the twitter tutorial a bit confusing; all I want to accomplish is using an api that can easily send tweets. Do I need to do this in a chrome extension?</p>