To prepare these cookies gluten-free, substitute the all-purpose flour with a 1:1 gluten-free baking flour blend that includes xanthan gum. Additionally, ensure the white chocolate used is certified gluten-free. The rest of the ingredients are naturally gluten-free, but always verify labels to prevent cross-contamination.