Explorar o código

尝试设置cookie_httponly

sandm hai 1 ano
pai
achega
ef3ec688d6
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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-Headers:*");
 define('LARAVEL_START', microtime(true));
+ini_set( 'session.cookie_httponly', 1 );
 
 /*
 |--------------------------------------------------------------------------