title: "Refused to load the script" error in chrome extension
body: <p>There are a lot of questions on SO similar to this one however none of them solved my purpose.<br>
  I'm creating a 'pinterest' like chrome extension. It injects script on webpage, collect images and then post it somewhere. Everything is working perfectly however when i run this on pinterest itself, it gives me this error:<br></p>
  
  <blockquote>
    <blockquote>
      <p>Refused to load the script '<a href="https://domain_name.com/my_script.js" rel="nofollow">https://domain_name.com/my_script.js</a>' because it violates the following Content Security Policy directive: "default-src 'self' https://<em>.pinterest.com https://</em>.pinimg.com  *.pinterest.com *.pinimg.com *.google.com connect.facebook.net <em>.google-analytics.com https://</em>.googleapis.com <em>.gstatic.com https://</em>.facebook.com *.facebook.com www.googleadservices.com googleads.g.doubleclick.net platform.twitter.com *.tiles.mapbox.com *.online-metrix.net *.bnc.lt bnc.lt *.yozio.com 'unsafe-inline' 'unsafe-eval'". Note that 'script-src' was not explicitly set, so 'default-src' is used as a fallback.</p>
    </blockquote>
  </blockquote>
  
  <p><br>
  I know this has a lot to do with <code>Content Script Policy</code> (and i don't know much about it) however, i followed <a href="http://www.html5rocks.com/en/tutorials/security/content-security-policy/" rel="nofollow">this</a> and <a href="http://content-security-policy.com/" rel="nofollow">this</a> link which gave me enough info on what is CSP and how to use it. <br>
  I've done everything (what i think) that is required but it still is not working. Here is my manifest.json<br></p>
  
  <pre><code>{
    "manifest_version": 2,
  
    "name": "Image Posting",
    "description": "This extension enables you to post images",
    "version": "1.0",
  
    "browser_action": {
      "name": "Image Posting"
    },
    "homepage_url": "https://www.domain_name.com/",
    "background":{
        "scripts":["background.js"]
    },
    "content_scripts": [
      {
        "matches": ["&lt;all_urls&gt;"],
        "js": ["jquery.js", "content.js"]
      }
    ],
    "icons": {
       "128": "icon_128.png",
       "16": "icon_16.png",
       "48": "icon_48.png"
    },
    "permissions": [
      "activeTab",
      "notifications"
    ],
    "web_accessible_resources": [
      "icon_48.png"
    ],
    "content_security_policy": "default-src 'self'  https://domain_name.com/my_script.js; script-src 'self'  https://domain_name.com/my_script.js; style-src 'self' https://domain_name.com/my_style.css; 'unsafe-inline' 'unsafe-eval'"
  }
  </code></pre>
  
  <p><br>
  at a point, i also thought that there might be something in this which cannot be actually done however, i then tried BUFFER extension, and it can successfully inject their script on pinterest as well which means this thing is somehow possible. Also, not to forget that extension like AdBlocker works on every site and they also must be pulling some resources from a remote server. Are they bypassing CSP by any means or there is something really crucial that i don't know or missed. Any suggestions/tips on how to do this?</p>