To make this recipe gluten-free, substitute the all-purpose flour with a 1:1 gluten-free baking flour blend that includes xanthan gum. Ensure that all other ingredients, such as cocoa powder and chocolate chips, are certified gluten-free, as cross-contamination may occur during processing.