web api instance property
MathMLElement: nonce property
The nonce property of the MathMLElement interface returns the nonce that is used by Content Security Policy to determine whether a given fetch will be allowed to proceed.
Value
A String; the cryptographic nonce, or an empty string if no nonce is set.
Examples
Retrieving a nonce value
const math = document.querySelector("math");
console.log(math.nonce);
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.
See also
noncea similar property for HTML elements.noncea similar property for SVG elements.nonceglobal attribute- Content Security Policy
- CSP:
script-src