Sends a HTTP header to disable content type sniffing in browsers which support it.
Description
See also
Source
function send_nosniff_header() {
header( 'X-Content-Type-Options: nosniff' );
}
Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |
Sends a HTTP header to disable content type sniffing in browsers which support it.
function send_nosniff_header() {
header( 'X-Content-Type-Options: nosniff' );
}
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.