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):