Allow webfonts through CSS (#230)
authorMark Brugnoli-Vinten <netniv@hotmail.com>
Tue, 30 Oct 2018 21:44:19 +0000 (21:44 +0000)
committerDenis Ovsienko <denis@ovsienko.info>
Tue, 30 Oct 2018 21:44:19 +0000 (21:44 +0000)
wwwroot/inc/solutions.php

index 7f2f15a..464568c 100644 (file)
@@ -455,14 +455,20 @@ function proxyStaticURI ($URI)
 {
        $content_type = array
        (
-               'css' => 'text/css',
-               'js' => 'text/javascript',
-               'html' => 'text/html',
-               'png' => 'image/png',
-               'gif' => 'image/gif',
-               'jpg' => 'image/jpeg',
-               'jpeg' => 'image/jpeg',
-               'ico' => 'image/x-icon',
+               'css'   => 'text/css',
+               'js'    => 'text/javascript',
+               'html'  => 'text/html',
+               'png'   => 'image/png',
+               'gif'   => 'image/gif',
+               'jpg'   => 'image/jpeg',
+               'jpeg'  => 'image/jpeg',
+               'ico'   => 'image/x-icon',
+               'eot'   => 'application/vnd.ms-fontobject',
+               'otf'   => 'application/font-sfnt',
+               'svg'   => 'image/svg+xml',
+               'ttf'   => 'application/font-sfnt',
+               'woff'  => 'application/font-woff',
+               'woff2' => 'font/woff2',
        );
        $matches = array();
        if