def METHOD_NAME(directory, filename, cache_timeout):
    out = send_from_directory(directory, filename, cache_timeout=cache_timeout)
    response = make_response(out)
    response.headers['Access-Control-Allow-Methods'] = 'GET, OPTIONS'
    response.headers['Access-Control-Allow-Origin'] = '*'
    return response