![CORS Essentials](https://wfqqreader-1252317822.image.myqcloud.com/cover/145/36701145/b_36701145.jpg)
上QQ阅读APP看书,第一时间看更新
Troubleshooting and debugging CORS
Detecting problems with CORS requires enabling the crossorigin attribute in the <script>
tag.
Normal script tags will pass the least information to window.onerror for scripts that do not pass the standard CORS checks. To allow error logging for sites that use a separate domain for static media, several browsers have enabled the crossorigin
attribute for scripts using the same definition as the standard crossorigin attribute for the <img>
tag.
Browser support for crossorigin attribute in the <script> tag
![](https://epubservercos.yuewen.com/DCCD7E/19470408608963606/epubprivate/OEBPS/Images/3.jpg?sign=1739695964-nOutiBxScJOj8vwp8F5oIjJgRnF1fCYg-0-f5e5cdd2d042251afc1dcd02a19e4770)