To prepare these cookies gluten-free, substitute the all-purpose flour with a 1:1 gluten-free baking flour blend that includes xanthan gum. Ensure all other ingredients, such as baking soda and confectioners' sugar, are certified gluten-free to avoid cross-contamination. The texture may be slightly more delicate, so handle with care when transferring the cookies after baking.