To make this recipe gluten-free, substitute the all-purpose flour with a 1:1 gluten-free baking flour that contains xanthan gum. Ensure that all other ingredients, such as baking powder and shredded coconut, are certified gluten-free. Baking time may vary slightly, so monitor doneness with a toothpick.