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:
Error while reading CSS rules from <random-link> SecurityError: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules.
Essentially what I require is a method of accessing a style sheet from another domain, but so far I haven't found a way of doing so. All I need to do is copy the csssheet and make it readable.
I have already tried try catches around the import statement.
Manifest.json:
{
  "name": "Inspect2",
  "description": "Inspect the page",
  "version": "2.0",
  "permissions": [
    "activeTab",
    "tabs",
    "notifications",
    "http://*/*",
    "https://*/*"
  ],
  "background": {
    "scripts": ["background.js"],
    "persistent": false
  },
  "browser_action": {
    "default_title": "..."
  },
  "manifest_version": 2
}
