Title: CORS Problem CloudFront
Last modified: December 30, 2019

---

# CORS Problem CloudFront

 *  [Skrlance](https://wordpress.org/support/users/seanlance/)
 * (@seanlance)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/cors-problem-cloudfront/)
 * I logged in and view the front website, I get CORS issue on Chrome. It happens
   on Google fonts that I have hosted in local and served via CloudFront CDN. It
   affects the visual view of the website only when logged in.
    However, it’s alright
   when viewed without logged in. How to fix this issue?
 * Failed to load resource: net::ERR_FAILED
    (index):1 Access to font at ‘[https://cdn.mydomain.com/wp-content/themes/rehub-theme/admin/fonts/webfonts/fa-brands-400.ttf&#8217](https://cdn.mydomain.com/wp-content/themes/rehub-theme/admin/fonts/webfonts/fa-brands-400.ttf&#8217);
   from origin ‘[https://mydomain.com&#8217](https://mydomain.com&#8217); has been
   blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on
   the requested resource.
 * This error message appears for every fonts served via CDN.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [adeelkhan](https://wordpress.org/support/users/adeelkhan/)
 * (@adeelkhan)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/cors-problem-cloudfront/#post-12284052)
 * Hi
 * To resolve the issue you may pass “Access-Control-Allow-Origin: *” in the header
   of your file.
 *  Thread Starter [Skrlance](https://wordpress.org/support/users/seanlance/)
 * (@seanlance)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/cors-problem-cloudfront/#post-12285668)
 * It’s fine to do that but seems like I found the problem.
    I tried inspect elements
   on Chrome > Network > Font.
 * I can see that Breeze is not using CDN url for web fonts. They are loading directly
   from the server url.
 * You know that Fonts could be heavy while loading. Its best when they are served
   via CDN url.
 * So, is it possible for you to make breeze load local web fonts from CDN url?
    -  This reply was modified 6 years, 5 months ago by [Skrlance](https://wordpress.org/support/users/seanlance/).
 *  Thread Starter [Skrlance](https://wordpress.org/support/users/seanlance/)
 * (@seanlance)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/cors-problem-cloudfront/#post-12286214)
 * Yes thats the bug in plugin. It happens even when I exclude fonts extensions 
   on CDN.
 * What happens is when I’m logged in it uses cdn url for fonts whereas when I am
   not logged in it uses server url. So, there is a bug!
 *  Thread Starter [Skrlance](https://wordpress.org/support/users/seanlance/)
 * (@seanlance)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/cors-problem-cloudfront/#post-12291469)
 * Are you going to fix that? (kindly)
 *  Plugin Author [adeelkhan](https://wordpress.org/support/users/adeelkhan/)
 * (@adeelkhan)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/cors-problem-cloudfront/#post-12303552)
 * We have added it to the list of improvements.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘CORS Problem CloudFront’ is closed to new replies.

 * ![](https://ps.w.org/breeze/assets/icon-256x256.gif?rev=3352595)
 * [Breeze Cache](https://wordpress.org/plugins/breeze/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/breeze/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/breeze/)
 * [Active Topics](https://wordpress.org/support/plugin/breeze/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/breeze/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/breeze/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [adeelkhan](https://wordpress.org/support/users/adeelkhan/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/cors-problem-cloudfront/#post-12303552)
 * Status: not resolved