<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>cloudfront on Andrés Álvarez</title>
    <link>https://aalvrz.me/tags/cloudfront/</link>
    <description>Recent content in cloudfront on Andrés Álvarez</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Wed, 12 Dec 2018 16:32:22 +0000</lastBuildDate>
    
	<atom:link href="https://aalvrz.me/tags/cloudfront/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>CloudFront CORS Font Issues</title>
      <link>https://aalvrz.me/posts/cloudfront-cors-font-issues/</link>
      <pubDate>Wed, 12 Dec 2018 16:32:22 +0000</pubDate>
      
      <guid>https://aalvrz.me/posts/cloudfront-cors-font-issues/</guid>
      <description>&lt;p&gt;I was experiencing an issue with CloudFront and some static assets of a Django application deployed to ElasticBeanstalk. The issue was happening when trying to retrieve some fonts that are stored in S3 and served by CloudFront, the browser dev tools would show some errors similar to the following:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Access to Font at &#39;http://CLOUDFRONT_HOSTNAME.cloudfront.net/FONT_PATH&#39; from origin &#39;http://www.example.com&#39; has been blocked by CORS policy: No &#39;Access-Control-Allow-Origin&#39; header is present on the requested resource.
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;A &lt;a href=&#34;https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS&#34;&gt;CORS&lt;/a&gt; issue. And apparently, very common when trying to load fonts.&lt;/p&gt;
&lt;p&gt;To fix this, there are a few possible things that you might have to try. I will list some of the fixes I found.&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>