Skip to main content

NONE

Constant NONE 

Source
pub const NONE: &str = "'none'";
Expand description

'none': nothing is allowed, in a ContentSecurityPolicy source list.

ยงExamples

use ocre::security::{ContentSecurityPolicy, NONE};

assert_eq!(ContentSecurityPolicy::new().object_src(&[NONE]).header_value(None), "object-src 'none'");