To make this recipe gluten-free, substitute the puff pastry with a gluten-free variety, which is available at many grocery stores. Ensure that the all-purpose flour is replaced with a gluten-free alternative, and verify that the other ingredients, such as the raisins and brown sugar, are certified gluten-free to avoid cross-contamination.