pub enum Value {
None,
Same,
UnsafeInline,
UnsafeEval,
WasmUnsafeEval,
StrictDynamic,
Uri(CompactString),
Scheme(CompactString),
Raw(CompactString),
}
Variants§
None
none
Won’t allow loading of any resources.
Same
self
,
Only allow resources from the current origin.
UnsafeInline
unsafe-inline
Allow use of inline resources.
UnsafeEval
unsafe-eval
Allow use of dynamic code evaluation such as eval, setImmediate, and window.execScript.
WasmUnsafeEval
wasm-unsafe-eval
StrictDynamic
strict-d