Uncaught DOMException: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules
See original GitHub issueHello! I’m super intrigued and curious to test Aspecty. I’m getting the following error and not sure why. Can you shed any light?
I tried on 2 different test sites, both with Local by Flywheel.
Uncaught DOMException: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules
at Array.from.sheet (https://sandbox.dev/wp-content/themes/sandbox/assets/js/aspecty.js?ver=0.0.12:116:9)
at Function.from (<anonymous>)
at Object.aspecty.findRules (https://sandbox.dev/wp-content/themes/sandbox/assets/js/aspecty.js?ver=0.0.12:113:10)
at aspecty.load (https://sandbox.dev/wp-content/themes/sandbox/assets/js/aspecty.js?ver=0.0.12:99:12)
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Uncaught DOMException: Failed to read the 'cssRules' property
Uncaught DOMException : Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules. Cross Domain Stylesheet.
Read more >How to Fix the “Failed to Read the ... - Better Programming
Uncaught DOMException : Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules. Our monitoring tool also provides ...
Read more >Failed to read the 'cssRules' property from 'CSSStyleSheet ...
UPDATE: I can confirm that this issue affects iOS when using WKWebView with loadFileURL / allowingReadAccessToURL IF there's a local stylesheet ...
Read more >ATF - Failed to read the 'cssRules' property from - ServiceNow
ATF Test: Assert Text on Page (Custom UI). - Error Message: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules.
Read more >Uncaught DOMException: Failed to read the 'cssRules' property
here's the error code from chrome. Uncaught DOMException: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Okay wow Vanilla JS is working really well and a lot less code than my jQuery version. I’m going to close this, but I owe you a 🍺or ☕️! Your snippets were a great head start, very much appreciated!
Thanks Tom, i’ll try those. I’m using jQuery now (cause JS is my weakest language!) and was very excited to see Aspecty. Our theme uses lots of Flexbox CSS and we only support IE11+ anyway.