How do you train your body to tolerate overseasoned/spicy foods?

Like Indian, Mexican, Thai, Turkish or other cuisines with so many spices. I really love it specially Indian food but it's also the one giving me the worst aftermath. I want to train in my body for those kind of food.
How do you train your body to tolerate overseasoned/spicy foods?
Post Opinion