To prepare these cookies gluten-free, substitute the all-purpose flour with a 1:1 gluten-free flour blend that contains xanthan gum or another binder. Ensure all other ingredients, including the baking powder, are certified gluten-free. The rest of the recipe remains unchanged and yields similarly delicious results with this adjustment.