OK, since they serve fortune cookies at the end of the meal in Chinese restaurants, you figure fortune cookies are from China. Wrong. They don’t even have fortune cookies in China (trust me, I lived there for a year. Almond cookies yes, fortune cookies no.)
So where did they come from? Japan. Kyoto, specifically. Find out more at the New York Times article: Solving a Riddle Wrapped in a Mystery Inside a Cookie