The story
Here “object” once meant an aim, the thing you’re after. In 1700s British newspaper ads, people would state what their object was. In 1782, a woman seeking work wrote that “salary will be no object,” meaning pay wasn’t what she was after. Over time, “no object” came to mean “no obstacle,” and the phrase moved out of the classifieds.