瀏覽代碼

尝试增加头

sandm 1 年之前
父節點
當前提交
373cb568c6
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      public/index.php

+ 3 - 0
public/index.php

@@ -10,6 +10,9 @@ header('Access-Control-Allow-Origin: https://rencai.jiangzi.xin');
 header("Access-Control-Allow-Methods:GET, POST, OPTIONS, DELETE");
 header("Access-Control-Allow-Headers:*");
 header('Referrer-Policy: origin');
+header('Strict-Transport-Security:max-age=180');
+header('X-Download-Options: noopen');
+header('X-Permitted-Cross-Domain-Policies: none');
 define('LARAVEL_START', microtime(true));
 
 /*