pub enum XssFilter {
Disable,
Enable,
EnableBlock,
EnableReport(Uri<'static>),
}
Expand description
The X-XSS-Protection header: filters some forms of reflected XSS attacks.
Variants§
Disable
Disables XSS filtering.
Enable
Enables XSS filtering. If XSS is detected, the browser will sanitize before rendering the page (SpaceHelmet default).
EnableBlock
Enables XSS filtering. If XSS is detected, the browser will not render the page.
EnableReport(Uri<'static>)
Enables XSS filtering. If XSS is detected, the browser will sanitize and
render the page and report the violation to the given Uri
. (Chromium
only)
Trait Implementations§
Source§impl Default for XssFilter
impl Default for XssFilter
Defaults to XssFilter::Enable
.
Auto Trait Implementations§
impl !Freeze for XssFilter
impl !RefUnwindSafe for XssFilter
impl Send for XssFilter
impl Sync for XssFilter
impl Unpin for XssFilter
impl UnwindSafe for XssFilter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
Source§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
Convert
self
to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more