To make this recipe gluten-free, substitute the all-purpose flour with a high-quality 1:1 gluten-free baking flour that contains xanthan gum. Ensure all additional ingredients, including cocoa powder and chocolate chips, are certified gluten-free. Baking time may remain the same, though cookies may be slightly softer in texture.