To make these cookies gluten-free, substitute the all-purpose flour with a high-quality 1:1 gluten-free baking flour blend. Ensure the blend contains xanthan gum or a similar binding agent to maintain the structure and texture of the cookies. Additionally, confirm that all other ingredients, particularly baking soda and spices, are certified gluten-free to avoid cross-contamination.