fix
This commit is contained in:
parent
927b38842f
commit
5c76db510c
|
@ -157,8 +157,7 @@
|
||||||
fetch('/index.php/home_search/search_by_phone', {
|
fetch('/index.php/home_search/search_by_phone', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json'
|
||||||
'X-CSRF-TOKEN': '<?= csrf_hash() ?>' // 添加 CSRF 令牌
|
|
||||||
},
|
},
|
||||||
body: JSON.stringify({ phone_number: phoneNumber })
|
body: JSON.stringify({ phone_number: phoneNumber })
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue