Title: Add crossorigin attribute on scripts
Last modified: August 30, 2016

---

# Add crossorigin attribute on scripts

 *  [Mike Wiegand](https://wordpress.org/support/users/mikeg_de/)
 * (@mikeg_de)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/add-crossorigin-attribute-on-scripts/)
 * Hi folks,
 * I am using a CDN on various pages and tracking JS-errors with Google Tag manager
   to increase customer satisfaction. Anyway browsers prevent error reporting for
   security reasons when script are loaded from a CDN giving “Line 0: Script error”
 * Though I have added the Access-Control-Allow-Origin header. What’s left is the
   crossorigin attribute on script tags. How can I have it added to the minified
   CDN files?
 * Kind regards
    Mike
 * [https://wordpress.org/plugins/w3-total-cache/](https://wordpress.org/plugins/w3-total-cache/)

The topic ‘Add crossorigin attribute on scripts’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

## Tags

 * [cdn](https://wordpress.org/support/topic-tag/cdn/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [js](https://wordpress.org/support/topic-tag/js/)
 * [monitoring](https://wordpress.org/support/topic-tag/monitoring/)

 * 0 replies
 * 1 participant
 * Last reply from: [Mike Wiegand](https://wordpress.org/support/users/mikeg_de/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/add-crossorigin-attribute-on-scripts/)
 * Status: not resolved