Preheat the oven to 350°F and line a baking sheet with parchment paper.
In a mixing bowl, beat the softened butter and granulated sugar until light and creamy.
Stir in the vanilla extract and salt until combined.
Gradually mix in the flour until a soft dough forms.
Scoop out tablespoon-sized portions of dough and roll them into balls. Place the balls on the prepared baking sheet.
Use your thumb or the back of a spoon to press an indent into the center of each ball.
Fill each indent with a few candy corn pieces, pressing them in gently so they stay in place.
Bake for 10 to 12 minutes until the edges turn lightly golden.
Let the cookies cool on the baking sheet for a few minutes before moving them to a wire rack.