title: SecurityError: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules
body: <p>I'm writing a chrome extension using three.js and dom-to-image as libraries, and I am getting this error from dom to image:</p>
  <p>Error while reading CSS rules from &lt;random-link&gt; SecurityError: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules.</p>
  <p>Essentially what I require is a method of accessing a style sheet from another domain, but so fare I haven't found a way of doing so. All I need to do is copy the csssheet and make it readable.</p>
  <p>I have already tried try catches around the import statement.</p>
  <p>Manifest.json:</p>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;name&quot;: &quot;Inspect2&quot;,
    &quot;description&quot;: &quot;Inspect the page&quot;,
    &quot;version&quot;: &quot;2.0&quot;,
    &quot;permissions&quot;: [
      &quot;activeTab&quot;,
      &quot;tabs&quot;,
      &quot;notifications&quot;,
      &quot;http://*/*&quot;,
      &quot;https://*/*&quot;
    ],
    &quot;background&quot;: {
      &quot;scripts&quot;: [&quot;background.js&quot;],
      &quot;persistent&quot;: false
    },
    &quot;browser_action&quot;: {
      &quot;default_title&quot;: &quot;...&quot;
    },
    &quot;manifest_version&quot;: 2
  }
  </code></pre>