This commit is contained in:
Jay Huang 2024-08-30 17:38:15 +08:00
parent 927b38842f
commit 5c76db510c
1 changed files with 1 additions and 2 deletions

View File

@ -157,8 +157,7 @@
fetch('/index.php/home_search/search_by_phone', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-CSRF-TOKEN': '<?= csrf_hash() ?>' // 添加 CSRF 令牌
'Content-Type': 'application/json'
},
body: JSON.stringify({ phone_number: phoneNumber })
})