I have tried a lot of solutions, but no one helps me!
I have latest google chrome browser! I have opened html page with it and it works! When i have moved that page into MVC, have run host with MAMP, and have open it using apache->php->MVC i've got blank squares instead of icons.
Using Chorome Developer Tools, i have seen, that everything (css and fonts too) are loaded by browser with status code 200. So links works properly! But only one thing that have confused me - content type in response headers! It's "plain/text"! So i decide that this is the primary reason.
As i'm using laravel application that runs under apache, a have added few lines into ".htaccess" file:
AddType font/woff .woff
AddType font/woff2 .woff2
Also I have tried:
AddType application/vnd.ms-fontobject .eot
AddType application/x-font-opentype .otf
AddType image/svg+xml .svg
AddType application/x-font-ttf .ttf
AddType application/font-woff .woff
AddType application/font-woff2 .woff2
Content-Type was changed, but it didn't gave me any results
What's wrong? BTW. if I use CDN - it works. But with local servers - it don't!
from Newest questions tagged laravel-5 - Stack Overflow http://bit.ly/2W47gNk
via IFTTT
Aucun commentaire:
Enregistrer un commentaire