{%- if grains['yandex-environment'] in ['prestable', 'production'] -%}
add_header Content-Security-Policy "default-src 'none'; style-src 'self' 'unsafe-inline' https://yastatic.net yandex.st banners.adfox.ru content.adfox.ru; script-src 'self' 'unsafe-eval' 'unsafe-inline' https://yastatic.net an.yandex.ru yandex.ru yandex.st mc.yandex.ru ads.adfox.ru ads6.adfox.ru awaps.yandex.ru awaps.yandex.net banners.adfox.ru content.adfox.ru www.tns-counter.ru https://video.vd.yandex.ru https://player.video.yandex.net; img-src 'self' data: https://yastatic.net *.yandex.net favicon.yandex.net https://passport.yandex.ru an.yandex.ru ads.adfox.ru ads6.adfox.ru clck.yandex.ru www.tns-counter.ru avatars-fast.yandex.net https://ar.tns-counter.ru awaps.yandex.ru banners.adfox.ru content.adfox.ru mc.yandex.com mc.webvisor.com mc.webvisor.org mc.yandex.ru mc.yandex.ua mc.yandex.by mc.yandex.kz mc.yandex.uz; font-src 'self' data: https://yastatic.net; child-src 'self' yandex.ru https://yastatic.net https://mc.yandex.ru https://passport.yandex.ru awaps.yandex.ru awaps.yandex.net yandexadexchange.net *.yandexadexchange.net *.yandex.ru banners.adfox.ru https://video.yandex.ru https://video.kinopoisk.ru https://videopartner.kinopoisk.ru https://video.vd.yandex.ru https://player.vd.yandex.net https://player.video.yandex.net https://frontend.vh.yandex.ru https://music.yandex.ru https://widgets.kinopoisk.ru https://ott-widget.yandex.ru; frame-src 'self' yandex.ru https://yastatic.net https://mc.yandex.ru https://passport.yandex.ru awaps.yandex.ru awaps.yandex.net yandexadexchange.net *.yandexadexchange.net *.yandex.ru banners.adfox.ru https://video.yandex.ru https://video.kinopoisk.ru https://videopartner.kinopoisk.ru https://video.vd.yandex.ru https://player.vd.yandex.net https://player.video.yandex.net https://frontend.vh.yandex.ru https://music.yandex.ru https://widgets.kinopoisk.ru https://ott-widget.yandex.ru; object-src 'self' https://yastatic.net; connect-src 'self' yandex.ru yandex.st https://an.yandex.ru https://yandex.ru/suggest-video/suggest-tv2 https://mail.yandex.ru https://yastatic.net https://static-mon.yandex.net https://frontend.vh.yandex.ru ads.adfox.ru ads6.adfox.ru strm.yandex.ru matchid.adfox.yandex.ru adfox.yandex.ru awaps.yandex.net sentry.iddqd.yandex.net https://yandex.ru/clck/click https://mc.yandex.ru https://mc.yandex.ua https://mc.yandex.by https://mc.yandex.kz https://mc.yandex.uz; media-src 'self' *.yandex.ru *.yandex.net yandex.st banners.adfox.ru content.adfox.ru yastatic.net; report-uri https://csp.yandex.net/csp?from=tv.production&yandexuid=3873073441545921729&yandex_login=";
{%- else %}
add_header Content-Security-Policy "default-src 'none'; style-src 'self' 'unsafe-inline' https://yastatic.net yandex.st banners.adfox.ru content.adfox.ru; script-src 'self' 'unsafe-eval' 'unsafe-inline' https://yastatic.net an.yandex.ru yandex.ru yandex.st mc.yandex.ru ads.adfox.ru ads6.adfox.ru awaps.yandex.ru awaps.yandex.net banners.adfox.ru content.adfox.ru www.tns-counter.ru https://video.vd.yandex.ru https://player.video.yandex.net; img-src 'self' data: https://yastatic.net *.yandex.net favicon.yandex.net https://passport-test.yandex.ru an.yandex.ru ads.adfox.ru ads6.adfox.ru clck.yandex.ru www.tns-counter.ru avatars-fast.yandex.net https://ar.tns-counter.ru awaps.yandex.ru banners.adfox.ru content.adfox.ru mc.yandex.com mc.webvisor.com mc.webvisor.org mc.yandex.ru mc.yandex.ua mc.yandex.by mc.yandex.kz mc.yandex.uz; font-src 'self' data: https://yastatic.net; child-src 'self' yandex.ru https://yastatic.net https://mc.yandex.ru https://passport-test.yandex.ru awaps.yandex.ru awaps.yandex.net yandexadexchange.net *.yandexadexchange.net *.yandex.ru banners.adfox.ru https://video.yandex.ru https://video.kinopoisk.ru https://videopartner.kinopoisk.ru https://video.vd.yandex.ru https://player.vd.yandex.net https://player.video.yandex.net https://frontend.vh.yandex.ru https://music.yandex.ru https://widgets.tst.kinopoisk.ru https://ott-widget.testing.yandex.ru; frame-src 'self' yandex.ru https://yastatic.net https://mc.yandex.ru https://passport-test.yandex.ru awaps.yandex.ru awaps.yandex.net yandexadexchange.net *.yandexadexchange.net *.yandex.ru banners.adfox.ru https://video.yandex.ru https://video.kinopoisk.ru https://videopartner.kinopoisk.ru https://video.vd.yandex.ru https://player.vd.yandex.net https://player.video.yandex.net https://frontend.vh.yandex.ru https://music.yandex.ru https://widgets.tst.kinopoisk.ru https://ott-widget.testing.yandex.ru; object-src 'self' https://yastatic.net; connect-src 'self' yandex.ru yandex.st https://an.yandex.ru https://suggest-tv-r1.ext.yandex.net/suggest-tv2-ru-test https://web-tst2g.yandex.ru https://yastatic.net https://static-mon.yandex.net https://frontend.vh.yandex.ru ads.adfox.ru ads6.adfox.ru strm.yandex.ru matchid.adfox.yandex.ru adfox.yandex.ru awaps.yandex.net sentry.iddqd.yandex.net https://yandex.ru/clck/click https://mc.yandex.ru https://mc.yandex.ua https://mc.yandex.by https://mc.yandex.kz https://mc.yandex.uz; media-src 'self' *.yandex.ru *.yandex.net yandex.st banners.adfox.ru content.adfox.ru yastatic.net; report-uri https://csp.yandex.net/csp?from=tv.testing&yandexuid=316510221545923382&yandex_login=";
{% endif %}
