K
K
Koollpatrick2017-07-23 20:01:15
Fonts
Koollpatrick, 2017-07-23 20:01:15

Why does the web browser not display the correct fonts and svg?

I start playing visits in the web browser, but fonts (correct, spelled out) and all svg are not displayed. And everything is somehow strange: I lose one visit, the first page looks absolutely normal, there is a transition to the next page, it is already playing without fonts and svg, the third one is normal again, and so on. If you start another visit, then it may be the other way around: on the first page it does not immediately display fonts and svg, on the second everything is OK, and so on. I launch another visit, it can play all pages without the correct fonts and svg.
Screenshot of how the webvisor loses without fonts and svg:
funkyimg.com/i/2vFid.png
Site:
markroqwel.ru
Debited from Yandex metrics TP back in February, they wrote that the problem is as follows, I quote:

The reason for this situation is that when loading pages into the player on behalf of an anonymous user, the content of your site is loaded through a proxy. As far as we can see, absolute links to fonts on the http://markroqwel.ru domain are registered in the source code of your site , because of this, fonts are loaded from the wrong domain from which they are requested, as evidenced by an error in the console:
Access to Font at ' markroqwel.ru/catalog/view/theme/theme_markroqwel/... ' from origin ' 6c87056d0cf873cfa2bc56504a5174b2.mtproxy.yandex.net ' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin ' 6c87056d0cf873cfa2bc56504a5174b2.mtproxy.yandex.net' is therefore not allowed access.
There are several ways to solve this situation:
a) set the relative path to the fonts in the source code of your site;
b) set the headers required for the Cross-Origin Resource Sharing policy in the web server settings.
c) Enable loading pages to the player on your behalf in the settings of the counter in the "Webvisor" section so that your site is requested not through a proxy, but directly.

Having checked everything on the site with the layout designer, they did not see any errors in the source code, that is:
- this error with fonts in the console and Access-Control-Allow-Origin headers is issued only in the web browser window when playing, there are no errors on the site.
- Relative paths to fonts are registered, not absolute ones. (Maybe I'm wrong?)
- Enabled loading on my behalf in the webvisor settings.
I was busy with other things, a few months later I checked again, and suddenly the svg also stopped being displayed. That is, in February, only fonts were not displayed. What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Fisenko, 2019-01-28
@So1omon

Same problem. Here is a screen of the webvisor
But the site itself https://aliexpress-lafa.ru/ , I don’t understand what could be the problem.
On search I found info that in the settings you can set some "special" parameters so that everything is displayed correctly.
At first, I generally thought that this is how everyone displays it, but it's just a record! You can dig into the settings, or you can just not bother yourself and score.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question