diff --git a/resources/views/chat.blade.php b/resources/views/chat.blade.php index b2722599..99e66a7e 100644 --- a/resources/views/chat.blade.php +++ b/resources/views/chat.blade.php @@ -667,7 +667,7 @@ data: message }, { headers: { - 'Authorization': `Bearer ${token}`, // 假设使用 Bearer token + 'token': `${token}`, // 假设使用 Bearer token 'Content-Type': 'application/json' // 通常也需要指定内容类型 } })