A nonce, short for “number used onceâ€, is a random number used to sign a message in client-server communication. The HTML “nonce†attribute is used as part of Content Security Policy feature in browsers.