浏览代码

HTTP security: prevent reflection abuse

https://msdn.microsoft.com/en-us/library/gg622941(v=vs.85).aspx
Alexandre Alapetite 9 年之前
父节点
当前提交
1a53058ef0
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      p/api/pshb.php

+ 1 - 0
p/api/pshb.php

@@ -5,6 +5,7 @@ require(LIB_PATH . '/lib_rss.php');	//Includes class autoloader
 define('MAX_PAYLOAD', 3145728);
 
 header('Content-Type: text/plain; charset=UTF-8');
+header('X-Content-Type-Options: nosniff');
 
 function logMe($text) {
 	file_put_contents(USERS_PATH . '/_/log_pshb.txt', date('c') . "\t" . $text . "\n", FILE_APPEND);