mirror of
https://github.com/rwf2/Rocket.git
synced 2025-01-29 12:52:05 +00:00
Fix MIME confusion attack URL in 'NoSniff' policy.
This commit is contained in:
parent
e73ff8c614
commit
cf5ccc4b2e
@ -238,7 +238,7 @@ impl Into<Header<'static>> for &ExpectCt {
|
||||
///
|
||||
/// [mime sniffing]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types#MIME_sniffing
|
||||
/// [X-Content-Type-Options]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options
|
||||
/// [attacks]: https://shieldjs.github.io/docs/dont-sniff-mimetype/
|
||||
/// [attacks]: https://blog.mozilla.org/security/2016/08/26/mitigating-mime-confusion-attacks-in-firefox/
|
||||
pub enum NoSniff {
|
||||
/// Turns off mime sniffing.
|
||||
Enable,
|
||||
|
Loading…
Reference in New Issue
Block a user