AddToAny With A Strict CSP

Use a nonce

  1. Generate a nonce per request, for example:
    MTY2MDExOTY5Niw0MjgwMzU5NzI1
  2. Include the nonce in your strict CSP:
  3. Content-Security-Policy: script-src 'nonce-MTY2MDExOTY5Niw0MjgwMzU5NzI1'
  4. Add the nonce attribute to your AddToAny <script> tag like so:
    <script async nonce="MTY2MDExOTY5Niw0MjgwMzU5NzI1" src="https://static.addtoany.com/menu/page.js"></script>