In the context of religion, the term has a neutral meaning. Outside of religion for most people the term means something negative, because it accepts only a particular point of view. If someone disputes a religious dogma, they can be accused of heresy.