Skip to content

Instantly share code, notes, and snippets.

@subatomicceo
subatomicceo / gist:11190993
Last active August 29, 2015 14:00
Tumblr Icomoon Font Icons Not Rendering Properly In Firefox

Problem

While working on The Giver Movie's Official Tumblr I ran across a problem. It seems that my icomoon font icons failed to render properly in Firefox. The issue is due to the fact that Firefox doesn't allow cross-domain fonts. The traditional solve is to add the following to your .htaccess: Header set Access-Control-Allow-Origin "*".

However, I have no control over the .htaccess due to the fact that my code will be hosted on Tumblr.com. So, I attempted to upload the font files through Tumblr's static upload page. This also failed because Firefox treats subdomains the same as cross-domains.

Solution

Below is my original snippet:

@subatomicceo
subatomicceo / 0_reuse_code.js
Created March 1, 2014 02:28
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console