def get_access_control_request_headers(self, environ): headers = environ.get('HTTP_ACCESS_CONTROL_REQUEST_HEADERS', '') return set(h.strip().lower() for h in headers.split(',') if h.strip())