![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=1739075543-vw0agT3bpb4haz1TpEewToHDiTIN7Ogo-0-96d498a8e1d24c66787a1c806c698297)