It is a way of asking for permission to do something, usually talking. For example, person A wants to tell a story, but person B isn't interested. Person A might say, "Please just indulge me for a couple minutes." Or a teacher might say to her class, "Please indulge me if I don't follow our usual lesson plan today." In other words, the teacher is asking her class to be patient with her and not complain.