To prepare this recipe gluten-free, substitute the all-purpose flour with a reliable 1:1 gluten-free baking flour blend that contains xanthan gum or a similar binder. This ensures the cookies maintain their soft and chewy texture without compromising structure.