human
Complete this python program:
def allow_CORS_GET(func):
assistant
#Here is the Python code you requested.

    """Decorator to allow CORS for GET requests
    """
    @wraps(func)
    def _added_header(request, *args, **kwargs):
        response = func(request, *args, **kwargs)
        if (('GET' == request.method) and switch_is_active('application_ACAO')):
            response['Access-Control-Allow-Origin'] = '*'
        return response
    return _added_header