bem-contrib / stat-counters

The library, which provides statistics counters, e.g. Google analytics, Yandex metrica, etc
MIT License
18 stars 8 forks source link

Add nonce support for metrika #57

Closed birhoff closed 8 years ago

tadatuta commented 8 years ago

@birhoff please update tests

remnev commented 8 years ago

What's problem it solves?

birhoff commented 8 years ago

Add support for nonce token. It's need for CSP. https://w3c.github.io/webappsec-csp/#match-nonce-to-source-list

remnev commented 8 years ago

Ok, I got the reason. We need to do a bit more then you did: add the attribute to another blocks, cover it by tests, update examples in the docs. If you don't want to do it (or don't have enough time), I will do it myself later.