WorryFree Computers   »   [go: up one dir, main page]

AddToAny With A Strict CSP

Use a nonce

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