def insert_headers(response):
    """
    Insert configured HTTP headers into the Flask response.
    :param flask.Response response: the response to insert headers into
    :return: modified Flask response
    :rtype: flask.Response
    """
    cors_url = '*'
    if cors_url:
        response.headers['Access-Control-Allow-Origin'] = cors_url
        response.headers['Access-Control-Allow-Headers'] = '*'
        response.headers['Access-Control-Allow-Method'] = '*'
    return response