Skip to content

Instantly share code, notes, and snippets.

Phippsy michaelphipps

View GitHub Profile
michaelphipps /
Last active May 27, 2018
How to get web fonts working correctly in your server environment.

If you have web fonts on a subdomain seperate to the domain you are calling them, usual advice is to place the following into the .htaccess file for the subdomain

<IfModule mod_headers.c>
  <FilesMatch “.(eot|otf|ttc|ttf|woff|woff2)$”>
    Header set Access-Control-Allow-Origin “*”
View apiexplorer.html
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta content="width=device-width, initial-scale=1" name="viewport">
<meta content="" name="description">
<meta content="" name="author">
<link href="../../favicon.ico" rel="icon">
<title>JSON API Explorer</title><!-- Latest compiled and minified CSS -->

Keybase proof

I hereby claim:

  • I am michaelphipps on github.
  • I am michaelphipps ( on keybase.
  • I have a public key whose fingerprint is FAE5 1CEC F182 EB36 BB3E 4BAD AFC5 0520 8CDF C98D

To claim this, I am signing this object:

You can’t perform that action at this time.