code: def _process_credentials(self, req, resp, origin):
          
          if self._cors_config['allow_credentials_all_origins']:
              self._set_allow_credentials(resp)
              return True
  
          if origin in self._cors_config['allow_credentials_origins_list']:
              self._set_allow_credentials(resp)
              return True
  
          credentials_regex = self._cors_config['allow_credentials_origins_regex']
          if credentials_regex:
              if credentials_regex.match(origin):
                  self._set_allow_credentials(resp)
                  return True
  
          return False
docs: Adds the Access-Control-Allow-Credentials to the response
          if the cors settings indicates it should be set.