Function getCSPNonce

  • Get the CSP nonce for script loading

    Returns string | undefined

    Current nonce if set

    import { getCSPNonce } from '@nextcloud/auth'

    __webpack_nonce__ = getCSPNonce()