Enum kvarn::csp::Value

source ·
pub enum Value {
    None,
    Same,
    UnsafeInline,
    UnsafeEval,
    WasmUnsafeEval,
    StrictDynamic,
    Uri(CompactString),
    Scheme(CompactString),
    Raw(CompactString),
}
Expand description

The values for all directives in CspRule.

See MDN for more details.

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

§

StrictDynamic

strict-d