Preheat the oven to 170C (340F). Line the bottom and sides of an 8-inch (20 cm) springform pan with parchment paper.
In a bowl, combine the flour, baking powder, and salt. Set aside.
In another bowl, whisk together the egg, vanilla extract, and sugar until pale yellow and well combined.
Add the vegetable oil and mix to combine.
Add the milk and mix to combine.
Add the dry ingredients and mix just until no dry ingredients remain and the batter is smooth.
Pour the batter into the prepared pan and carefully arrange the apricot halves cut side up on top of the batter. Try to not press them in so they don’t sink during baking.
Bake for 50–60 minutes or until a toothpick inserted into the center comes out clean and the top is evenly browned.
If using the glaze, brush it over the hot cake.
Allow the cake to cool in the pan until it is slightly warm before removing it.