Jump to content

1.6.0.11: Using CloudFront breaks Font-Awesome icons


Recommended Posts

Just upgraded from 1.6.0.9 to .11.

 

Everything works fine. However there's a problem with the Font-Awesome icons when using Amazon CloudFront as media server. As you can see the icons don't load. 

 

I'm not using S3 with CloudFront, just the "origin pull" feature. 

 

It worked perfectly with 1.6.0.9 and also when not using a media server.

 

With CloudFront enabled as media server:

post-773460-0-22006000-1422291858_thumb.png

 

Without media server:

post-773460-0-45924700-1422291858_thumb.png

Edited by Morten Borg (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...
  • 7 months later...

Here is the solution :

Check that you have mod_headers in your php info.

 

Then add this in your .htaccess :

<IfModule mod_setenvif.c>
  <IfModule mod_headers.c>
    # mod_headers, y u no match by Content-Type?!
    <FilesMatch "\.(gif|png|jpe?g|svg|svgz|ico|webp)$">
      SetEnvIf Origin ":" IS_CORS
      Header set Access-Control-Allow-Origin "*" env=IS_CORS
    </FilesMatch>
  </IfModule>
</IfModule>
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...