To make this Boston Cream Pie gluten free, substitute the all-purpose flour with a high-quality 1:1 gluten-free baking flour that contains xanthan gum. Ensure all other ingredients, including cornstarch and chocolate, are certified gluten free. Expect a slightly more delicate crumb, but the flavor and structure will remain excellent.