human
I wrote the below code

    @functools.wraps(func)
    def wrapped(*a, **kw):
        controller = a[0]
        req = a[1]
        req_origin = req.headers.get('Origin', None)
        if req_origin:
            container_info = controller.container_info(controller.account_name, controller.container_name)
            cors_info = container_info.get('cors', {})
            resp = func(*a, **kw)
            expose_headers = ['cache-control', 'content-language', 'content-type', 'expires', 'last-modified', 'pragma', 'etag', 'x-timestamp', 'x-trans-id']
            for header in resp.headers:
                if (header.startswith('x-container-meta') or header.startswith('x-object-meta')):
                    expose_headers.append(header.lower())
            if cors_info.get('expose_headers'):
                expose_headers.extend([a.strip() for a in cors_info['expose_headers'].split('    ') if a.strip()])
            resp.headers['Access-Control-Expose-Headers'] = ',    '.join(expose_headers)
            resp.headers['Access-Control-Allow-Origin'] = req_origin
            return resp
        else:
            return func(*a, **kw)
    return wrapped

What's a good function header?
 ... Here's a good function header?
assistant
#Here's a good function header.

def cors_validation(func):