Cors And Cloudfront

I believe this topic is concerning many with Cloudfront as there is no definite solution on how to solve it.

Anyone manage to solve the errors concerning Cloudfront and webfonts?

Amazon CloudFront edge servers will use the Access-Control-Allow-Origin policy that you set on your origin. By default, this policy will not be set to allow fonts or another CORS objects to be used across domains.

You will need to modify your apache config file, or .htaccess file in your docroot (for Apache servers) to include the following line:

Header set Access-Control-Allow-Origin: http://www.website.com

or 'https' if you have SSL enabled.

https://enable-cors.org/server_apache.html

Thanks!

This is one of the first tasks which we tried. Do you think adding .htaccess in design/backend/media/fonts might help?

Thanks!

This is one of the first tasks which we tried. Do you think adding .htaccess in design/backend/media/fonts might help?

Don't think so, it should be in the root of the domain. But do you have the 'override' function enabled on your server? Otherwise changes in your htaccess file won't work.

I believe this topic is concerning many with Cloudfront as there is no definite solution on how to solve it. Anyone manage to solve the errors concerning Cloudfront and webfonts?

Check the following topic http://forum.cs-cart.com/topic/44755-configuring-aws-amazon-cloudfront/#entry250322