useNonce
The useNonce hook returns the content security policy nonce. Use the hook to manually add a nonce to third party scripts. The Script component automatically does this for you. Note, the nonce should never be available in the client, and should always return undefined in the browser.
Anchor to useNonceuse Nonce()
use Nonce()
Was this page helpful?