To make these cookies gluten-free, substitute the all-purpose flour with a 1:1 gluten-free baking flour blend that contains xanthan gum. Ensure the chocolate and all other ingredients are certified gluten-free. The cookie texture may be slightly softer, but the overall flavor and richness remain intact. Chill the dough thoroughly before baking for the best results.