From 5c76db510c7559c2d8ce07853909be93b9a83389 Mon Sep 17 00:00:00 2001 From: Jay Huang Date: Fri, 30 Aug 2024 17:38:15 +0800 Subject: [PATCH] fix --- application/views/layouts/home_search_layout.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/application/views/layouts/home_search_layout.php b/application/views/layouts/home_search_layout.php index e7952741..721ec1e5 100755 --- a/application/views/layouts/home_search_layout.php +++ b/application/views/layouts/home_search_layout.php @@ -157,8 +157,7 @@ fetch('/index.php/home_search/search_by_phone', { method: 'POST', headers: { - 'Content-Type': 'application/json', - 'X-CSRF-TOKEN': '' // 添加 CSRF 令牌 + 'Content-Type': 'application/json' }, body: JSON.stringify({ phone_number: phoneNumber }) })