Horses spook at things, some more, some less. Yes, it is largely affected by the confidence of the rider. But, horses will spook at things.
It isn't necessary to make her go up to the thing that scares her. Just do not allow her to turn away and bolt away from it, or to rush all goosey past it. She does not have to go touch it, but she cannot "flee" it, either. And, she must return to your direction (go the way you want her to) as soon as she is ready.
So, to me that means that if the horse is really scared of something, so much that he'll want to spin and bolt, I will , using one rein, pull him/her back toward facing the object. If they spin right, I pull them back to the left and let go as soon as they are facing the object. I will let them look at it for a bit, on as loose a rein as I can, just be ready to put their head back in that direction if they spin. Or, if the try to goose on past it, I'll pull them up, turn them back and go past it again until they can walk past it without their neck in the air and a hollowed out back and dashing past.
If the horse is really, really scared, I allow them the time to stand and smell or think about the object. Other experienced riders do not agree with that approach. For me, if the horse is really scared, and I push it forward, it will certainly feel pinched between a rock and a hard place, and likely spin. If I wait for a sec, and look to see a change in its body, like, it heaves a sigh, licks it's lips, turns to look in another direction, lowers its head, then I know it is ready to take my direction to move forward. I ask for forward, and do not clench up on the rein, if you can manage.
And , as soon as you can, go back to the loosest rein you can. You can pat your hrose AFTER she passes the scary thing, not while she's spooking or thinking about it.