From f2c8387e977b2bf6caa6e617931136fa5873c57a Mon Sep 17 00:00:00 2001 From: panyy Date: Mon, 29 Jun 2026 17:16:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E9=99=90=E5=88=B6=E5=BF=85=E9=A1=BBapi-ke?= =?UTF-8?q?y=E6=88=96=E7=99=BB=E5=BD=954?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/chat/views/chat.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/chat/views/chat.py b/apps/chat/views/chat.py index cc6ac8f30..39978fbe6 100644 --- a/apps/chat/views/chat.py +++ b/apps/chat/views/chat.py @@ -99,8 +99,10 @@ class AnonymousAuthentication(APIView): ) def post(self, request: Request): return result.success( - AnonymousAuthenticationSerializer(data={'access_token': request.data.get("access_token")}).auth( - request), + AnonymousAuthenticationSerializer(data={ + 'access_token': request.data.get("access_token"), + 'api_key': request.data.get("api_key"), + }).auth(request), headers={"Access-Control-Allow-Origin": "*", "Access-Control-Allow-Credentials": "true", "Access-Control-Allow-Methods": "POST", "Access-Control-Allow-Headers": "Origin,Content-Type,Cookie,Accept,Token"}