Enum rocket::shield::XssFilter [−][src]
pub enum XssFilter { Disable, Enable, EnableBlock, }
Expand description
The X-XSS-Protection header: filters some forms of reflected XSS attacks. Modern browsers do not support or enorce this header.
Variants
Disables XSS filtering.
Enables XSS filtering. If XSS is detected, the browser will sanitize before rendering the page (Shield default).
Enables XSS filtering. If XSS is detected, the browser will not render the page.
Trait Implementations
Defaults to XssFilter::Enable
.
Auto Trait Implementations
impl RefUnwindSafe for XssFilter
impl UnwindSafe for XssFilter