send_nosniff_header() WP 3.0.0
Send a HTTP header to disable content type sniffing in browsers which support it.
No Hooks.
Return
````. Null. Nothing.
Usage
send_nosniff_header();
Notes
- See: https://blogs.msdn.com/ie/archive/2008/07/02/ie8-security-part-v-comprehensive-protection.aspx
- See: https://src.chromium.org/viewvc/chrome?view=rev&revision=6985
Changelog
Since 3.0.0 | Introduced. |
Code of send_nosniff_header() send nosniff header WP 5.7
function send_nosniff_header() {
header( 'X-Content-Type-Options: nosniff' );
}