To make this recipe gluten-free, substitute the all-purpose flour with a gluten-free 1:1 baking flour blend that includes xanthan gum. Ensure all other ingredients, especially the cocoa powder and chocolate chips, are certified gluten-free. Chilling the dough before baking helps improve structure and prevents excessive spreading.