To make these cookies gluten-free, substitute the all-purpose flour with a gluten-free 1:1 baking flour blend. Ensure the blend includes xanthan gum or a similar binding agent to maintain the texture. Additionally, verify that all other ingredients, such as powdered sugar and jam, are certified gluten-free.