take a joke
Accept teasing at one's own expense, as in Sam really couldn't take a joke. This idiom, often put negatively, was first recorded in 1780. Also see take it.
Dictionary.com presents 366 FAQs, incorporating some of the frequently asked questions from the past with newer queries.