To make this recipe gluten free, replace the all-purpose flour with a high-quality 1:1 gluten-free baking flour blend that contains xanthan gum, or add xanthan gum if your chosen blend does not include it. Also verify that the cocoa powder, powdered sugar, vanilla extract, sour cream, and any other packaged ingredients are certified gluten free or free from cross-contact concerns. Because gluten-free cakes can be slightly more delicate, allow the cake to cool fully before frosting and slicing for the best texture.