Title: Font with CDN
Last modified: April 1, 2018

---

# Font with CDN

 *  Resolved [hungpham](https://wordpress.org/support/users/hungpham/)
 * (@hungpham)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/font-with-cdn/)
 * I have 2 local fonts, already use header: access-control-allow-origin: *
    However,
   checking with Pingdom, the fonts are always loaded from the original server. 
   If I disable Optimize CSS feature, then the fonts will be served from CDN normally.
 * For CDN connection, I am using WP Fastest Cache.
 * Any idea why Optimize CSS feature prevents fonts loaded from CDN?
 * Thanks.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/font-with-cdn/#post-10136843)
 * That’s explained in [the FAQ](https://wordpress.org/plugins/autoptimize/#faq)
   actually [@hungpham](https://wordpress.org/support/users/hungpham/);
 * >  **Why aren’t my fonts put on the CDN as well?**
   >  Autoptimize supports this, but it is not enabled by default because non-local
   > fonts might require some extra configuration. But if you have your cross-origin
   > request policy in order, you can tell Autoptimize to put your fonts on the 
   > CDN by hooking into the API, setting autoptimize_filter_css_fonts_cdn to true
   > this way;
   > `add_filter('autoptimize_filter_css_fonts_cdn',__return_true);`
 * hope this helps,
    frank

Viewing 1 replies (of 1 total)

The topic ‘Font with CDN’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/font-with-cdn/#post-10136843)
 * Status: resolved