To make this recipe gluten-free, substitute the all-purpose flour with a certified gluten-free 1:1 baking flour that contains xanthan gum. Ensure all other packaged ingredients, such as baking soda, coconut, and raisins, are labeled gluten-free to prevent cross-contamination.