Preheat oven to 350 degrees F.Line a 9 inch square metal baking pan with foil and spray foil with cooking spray or rub with butter and line with parchment paper.
Sift flour, salt and baking soda together into a small bowl. Set aside.
In a large mixing bowl, beat the butter, sugar and vanilla together with an electric mixer. Scrape the bowl with a rubber spatula. Stir in the egg and beat until smooth.
Add the flour mixture and stir until well blended.
With flour on your fingers, press the dough into the bottom of the pan and set aside while you prepare the filling.
Beat the butter, salt and vanilla with the mixer until light and fluffy. Scrape the bowl with a rubber spatula.
Using lowest speed of mixer, beat in condensed milk. Beat for about 15 seconds. Scrape bowl and beat in the corn syrup. Add the egg and beat for 1 ½ minutes on medium-high speed until the mixture is light and fluffy again. Scrape the bowl. With the mixer on medium-low speed, add the flour and beat until mixed, 30 seconds (I just stirred it in).
Pour the filling evenly over the base. Bake on the center rack of the oven until the edges appear set but the center is still jiggly, 25 to 27 minutes. Let cool to room temperature; then refrigerate until set, about 4 hours. Cut into 2 ¼-by-1 ½-inch bars with a sharp thin knife, dipping it in hot water and wiping it clean before each new cut.
Notes
For thicker bars, you can bake these in an 8 inch square pan. If using an 8 inch square pan, reduce the heat to 325 and bake for a slightly longer time.