From 5a44425e56ec72d3c692e1b47c2d6f34776f2313 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A8=84=E6=A2=A6=E5=AE=81?= Date: Sun, 18 Apr 2021 15:05:05 +0800 Subject: [PATCH] checkredis --- public/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/index.php b/public/index.php index fa22d12..eff5367 100755 --- a/public/index.php +++ b/public/index.php @@ -7,7 +7,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') { header('Access-Control-Allow-Headers:platform,lang,x-requested-with,content-type,token');//浏览器页面ajax跨域请求会请求2次,第一次会发送OPTIONS预请求,不进行处理,直接exit返回,但因为下次发送真正的请求头部有带token,所以这里设置允许下次请求头带token否者下次请求无法成功 exit("ok"); } -// +//K // ///**======设置跨域cookies传递===开始=====*/ //header("Access-Control-Allow-Methods: GET,POST");