class CORSMiddleware:
    """This is the middleware that applies a CORS object to requests.

    Args:
        cors (CORS, required): An instance of :py:class:`~falcon.cors.CORS`.
        default_enabled (bool, optional): Whether CORS processing should
            take place for every resource.  Default ``True``.
    """
    def __init__(self, cors, default_enabled=True):
        self.cors = cors
        self.default_enabled = default_enabled

    def process_resource(self, req, resp, resource, *args):
        if not getattr(resource, 'cors_enabled', self.default_enabled):
            return
        cors = getattr(resource, 'cors', self.cors)
        cors.process(req, resp, resource)

    async def process_resource_async(self, req, resp, resource, *args):
        if not getattr(resource, 'cors_enabled', self.default_enabled):
            return
        cors = getattr(resource, 'cors', self.cors)
        cors.process(req, resp, resource)

@@ -690,262 +690,4 @@
 ce)%0A
-%0A    async def process_resource_async(self, req, resp, resource, *args):%0A        if not getattr(resource, 'cors_enabled', self.default_enabled):%0A            return%0A        cors = getattr(resource, 'cors', self.cors)%0A        cors.process(req, resp, resource)%0A

Update middleware.py