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 enforce this header.
Variants§
Disable
Disables XSS filtering.
Enable
Enables XSS filtering. If XSS is detected, the browser will sanitize before rendering the page (Shield default).
EnableBlock
Enables XSS filtering. If XSS is detected, the browser will not render the page.
Trait Implementations§
source§impl Default for XssFilter
impl Default for XssFilter
Defaults to XssFilter::Enable
.