Answer the question
In order to leave comments, you need to log in
Why does Yandex.Metrica work incorrectly with the Content Security Policy (CSP)?
I installed everything according to the official guide from Yandex.Metrica - https://yandex.ru/support/metrica/code/install-cou... . I try, when I click on the pages in the console, something like this flies:
Refused to load the image ' https://mc.yandex.ru/clmap/57115789?page-url=........ ' because it violates the following Content Security Policy directive: "default-src 'self' data:". Note that 'img-src' was not explicitly set, so 'default-src' is used as a fallback.
default-src 'self' data: https://mc.yandex.ru
?
Answer the question
In order to leave comments, you need to log in
I didn’t quite understand what kind of thing this is ... CSP, but it seems to me, according to the logic of things, that you need to unscrew this thing in .htaccess ....
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question