pub struct XXSSProtection;Expand description
XXSSProtection disables browsers’ buggy cross-site scripting filter by setting the
X-XSS-Protection header to 0. See discussion about disabling the header here and documentation on MDN.
Trait Implementations§
Source§impl Default for XXSSProtection
impl Default for XXSSProtection
Source§impl IntoHeader for XXSSProtection
impl IntoHeader for XXSSProtection
fn header_name(&self) -> HeaderName
fn header_value(&self) -> Result<HeaderValue, InvalidHeaderValue>
Auto Trait Implementations§
impl Freeze for XXSSProtection
impl RefUnwindSafe for XXSSProtection
impl Send for XXSSProtection
impl Sync for XXSSProtection
impl Unpin for XXSSProtection
impl UnsafeUnpin for XXSSProtection
impl UnwindSafe for XXSSProtection
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