Answer the question
In order to leave comments, you need to log in
Why are fonts not being connected from the server?
I'm typing a letter. the layout was made by people who do not know about the restrictions on layout in this niche.
I myself am a pre-junior, so the question arose.
Non-standard fonts are used. Locally everything was OK. But, when I uploaded the fonts to a remote server and, accordingly, changed the font-face paths to the font files from "../fonts/..." to the full path on the server " http://.../fonts/.. . "(Checked through the browser - there is access to the file), then the fonts fall off the layout. Why is that?
Answer the question
In order to leave comments, you need to log in
The easiest way to do this is through LocalStorage https://tproger.ru/articles/localstorage/. However, this will not work for you if you want to be linked to an account, and not to a computer.
In the case of an account, it would be possible to write to the database the data on which question the person stopped on
And do it all through sessions and cookies, of course
Adding to .htaccess helped
<IfModule mod_headers.c>
<FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$">
Header set Access-Control-Allow-Origin "*"
</FilesMatch>
</IfModule>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question