MathML
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
Browser compatibility
See also
- HTMLElement.nonce a similar property for HTML elements.
- SVGElement.nonce a similar property for SVG elements.
nonceglobal attribute- Content Security Policy
- CSP: script-src
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
