出现这个错误一般是由于你在js里面调用css文件时,是从另外一个domain 加载的,解决的办法是:在<link></link>标签中加crossorigin="anonymous"
属性,让浏览器知道这个css文件是可信任的。
还有一个比较暴力的方法:
<style type="text/css">
@import url("https://externaldomain.com/includes/styles/cookie-btn.css");
</style>
具体可以参考:
http://stackoverflow.com/questions/5323604/firefox-not-able-to-enumerate-document-stylesheets-cssrules
http://stackoverflow.com/questions/3211536/accessing-cross-domain-style-sheet-with-cssrules