send_nosniff_header() WordPress Function
The send_nosniff_header() function is a security measure that tells the browser not to sniff the content-type of a file. This can be helpful in preventing certain types of attacks, such as cross-site scripting (XSS).
send_nosniff_header() #
Send a HTTP header to disable content type sniffing in browsers which support it.
Description
See also
Source
File: wp-includes/functions.php
function send_nosniff_header() { header( 'X-Content-Type-Options: nosniff' ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |