A
A
Abbadoshi2020-01-21 18:47:19
Yandex.Metrica
Abbadoshi, 2020-01-21 18:47:19

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.

How to overcome such evil spirits?) Or you just need to add: default-src 'self' data: https://mc.yandex.ru?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita Shinkevich, 2020-01-21
@domres

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 question

Ask a Question

731 491 924 answers to any question