So the files are (probably) there and readable by the web server, which is good. However – and this is where I have to start guessing a little – for some weird reason, which is probably caused by the way servers are set up at your web hoster, the browser considers this a cross-origin request, which is not allowed. Usually, this would only happen if for instance the font files lived on a different server.hdiaz36 wrote:Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://daxueyingyu.com/hugo/templates/2 ... f?70036835. This can be fixed by moving the resource to the same domain or enabling CORS. fontello.woff
downloadable font: download failed (font-family: "fontello" style:normal weight:normal stretch:normal src index:1): bad URI or cross-site access not allowed
source: http://daxueyingyu.com/hugo/templates/2 ... f?70036835 index.php:460
Assuming that you can edit your .htaccess file (with a text editor), you should be able to fix this by adding something to it. First, check if there is a file called .htaccess in the root directory of your web space (i.e. the directory to which you installed Serendipity). If not … uhm … well, if not, you should check with your web hoster if you can have a .htaccess file. (The file might not be showing up in Filezilla because of the dot at the beginning; again, you'd need to check Filezillas preferences for that, the option should be called something like “Display hidden/system files” or similar.)
If you do have an .htaccess file, it should already contain a line that says
Code: Select all
# BEGIN s9y
Code: Select all
<IfModule mod_headers.c>
<FilesMatch "\.(eot|otf|tt[cf]|woff2?)$">
Header set Access-Control-Allow-Origin "*"
</FilesMatch>
</IfModule>
YL