kvarn::csp

Enum 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