Flat cookies are often the result of not chilling your cookie dough. Chilling the dough firms up the fat, which is the coconut oil, allowing it to take longer to melt when baking. The longer the coconut oil takes to melt, the less likely your cookies will spread.