Short answer: usually warm dough, over-creamed butter, or too much raising agent.

Spread comes from butter melting before the cookie can set. The three common culprits: dough that went into a hot oven too warm (chill it first — this is the big one), butter and sugar creamed too long so there’s excess air, or a heavy hand with the bicarbonate of soda. A too-hot or dark tray does it too. Chill the scooped dough for at least 30 minutes, cream only until just combined, and measure your raising agent carefully.

Related:bakery-style chocolate chip cookies · glossary:chilling dough,creaming,bicarbonate of soda.