docs: def json_response(self, status=200, data={}, headers={}):
          '''
            To set flask to inject specific headers on response request,
            such as CORS_ORIGIN headers
          '''
          mimetype = 'application/json'
  
          header_dict = {}
          for k, v in headers.items():
              header_dict[k] = v
  
          return Response(
              json.dumps(data),
              status=status,
              mimetype=mimetype,
              headers=header_dict)