To make this recipe gluten-free, substitute the all-purpose flour with a certified 1:1 gluten-free baking flour blend. Ensure that the cocoa powder and chocolate used are also certified gluten-free, as some may contain trace amounts of gluten from shared facilities.