send_nosniff_header()WP 3.0.0

Sends a HTTP header to disable content type sniffing in browsers which support it.

No Hooks.

Return

null. Nothing (null).

Usage

send_nosniff_header();

Notes

Changelog

Since 3.0.0 Introduced.

send_nosniff_header() code WP 6.5.2

function send_nosniff_header() {
	header( 'X-Content-Type-Options: nosniff' );
}