Browse Source

尝试设置cookie_httponly

sandm 1 year ago
parent
commit
ef3ec688d6
1 changed files with 1 additions and 0 deletions
  1. 1 0
      public/index.php

+ 1 - 0
public/index.php

@@ -10,6 +10,7 @@ header('Access-Control-Allow-Origin: https://rencai.jiangzi.xin');
 header("Access-Control-Allow-Methods:GET, POST, OPTIONS, DELETE");
 header("Access-Control-Allow-Methods:GET, POST, OPTIONS, DELETE");
 header("Access-Control-Allow-Headers:*");
 header("Access-Control-Allow-Headers:*");
 define('LARAVEL_START', microtime(true));
 define('LARAVEL_START', microtime(true));
+ini_set( 'session.cookie_httponly', 1 );
 
 
 /*
 /*
 |--------------------------------------------------------------------------
 |--------------------------------------------------------------------------