The Wayback Machine - http://web-wp.archive.org/web/20251008102549/https://demo.addtoany.com/csp

AddToAny With A Strict CSP

Use a nonce

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