send_nosniff_header

函数


send_nosniff_header ( No parameters )
相关
  • https://blogs.msdn.com/ie/archive/2008/07/02/ie8-security-part-v-comprehensive-protection.aspx
  • https://src.chromium.org/viewvc/chrome?view=rev&revision=6985
定义位置
  • wp-includes/functions.php
    , line 6756
引入
3.0.0
弃用

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

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