To make this recipe gluten-free, substitute the all-purpose flour with a certified 1:1 gluten-free baking flour blend that includes xanthan gum. Ensure all other ingredients, including baking soda and vanilla extract, are labeled gluten-free. Chilling the dough is especially helpful when using gluten-free flour, as it prevents spreading and improves texture.