From 7e475b0b67e7bce9580401810753a07c90740a6c Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 7 Jun 2023 18:21:58 +0800 Subject: [PATCH] bugfix --- ahserver/baseProcessor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ahserver/baseProcessor.py b/ahserver/baseProcessor.py index f1fbbce..52efb80 100755 --- a/ahserver/baseProcessor.py +++ b/ahserver/baseProcessor.py @@ -82,6 +82,7 @@ class BaseProcessor(AppLogger): async def handle(self,request): await self.execute(request) if self.retResponse is not None: + self.retResponse.headers['Access-Control-Expose-Headers'] = '*' return self.retResponse elif type(self.content) == type({}) : self.content = json.dumps(self.content, @@ -91,6 +92,7 @@ class BaseProcessor(AppLogger): indent=4) self.headers['Content-Type'] = "application/json; utf-8" + self.headers['Access-Control-Expose-Headers'] = '*' return Response(text=self.content,headers=self.headers) async def datahandle(self,request):