Preheat oven to 350F and line two baking sheets with parchment paper. Beat softened butter and granulated sugar together until light and fluffy, about 3 minutes. Beat in egg yolks and vanilla extract until combined.
Add gluten free flour and salt to the butter mixture and stir until a smooth dough forms. If the dough feels too soft, refrigerate for 15 minutes.
Roll tablespoon-sized portions of dough into balls and place them 2 inches apart on the prepared baking sheets. Use your thumb or the back of a rounded measuring spoon to create a deep indent in the center of each ball.
Fill each indent with about 1/2 teaspoon of jam, alternating between raspberry and apricot for variety.
Bake for 12 to 14 minutes until the edges are lightly golden and the cookies are set. Let cool on the baking sheets for 5 minutes, then transfer to wire racks. Dust lightly with powdered sugar once completely cooled.