AddToAny With A Strict CSP

Use a nonce

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