Datalayer VS Code Extension - v0.0.4
    Preparing search index...
    • Generates a cryptographically random nonce string for Content Security Policy headers. Used to allow specific inline scripts in webviews while maintaining security.

      Returns string

      A 32-character random string suitable for CSP nonce attribute

      const nonce = getNonce();
      const csp = `default-src 'none'; script-src 'nonce-${nonce}'`;