Prep. Preheat oven to 350℉. Spray a 9-inch cake pan with cooking spray and line with parchment paper or brush with homemade cake goop. Set aside.
Whisk dry ingredients. In a medium bowl, whisk the flour, salt, cornstarch, and baking soda. Set aside.
Mix wet ingredients. In a separate bowl, using a hand mixer or stand mixer on medium speed, cream together the butter, brown sugar, and granulated sugar until well combined, about 3 minutes. Mix in the eggs and vanilla extract until well combined, about 1 minute.
Mix wet and dry ingredients. Mix in the dry ingredients into the wet ingredients until well combined.
Add the chocolate chips. Stir in 1 cup of the chocolate chips and mix well.
Bake. Press the cookie dough into the prepared cake pan. Sprinkle the remaining chocolate chips on top of the cookie dough. Bake in the preheated oven for approximately 20 to 25 minutes until the cake is lightly browned. Remove from the oven and cool on a wire rack.
Assemble the cake. Carefully lift the cookie cake from the cake pan and discard the parchment paper. Transfer the cake to a cake stand and decorate.
Make the Frosting. Add all of the ingredients for the frosting to a large mixing bowl. Using a hand mixer (or a stand mixer), beat on the lowest speed until well combined. Turn to higher speed and continue to beat until smooth and creamy. Transfer the frosting to a piping bag (or a zip-top bag with the bottom corner snipped out with scissors) fitted with a star piping tip (I use a Wilton 1M).
Decorate the Cake. Pipe small decorative mounds of frosting around the edge of the cookie cake. Sprinkle the optional chocolate chips or rainbow sprinkles onto the top of the cake and frosting.
Notes
Make Ahead and Storage TipsMake Ahead: Prepare the cookie cake and store it at room temperature for up to 3 days.Leftovers: Wrap tightly with plastic wrap or store under a cake dome for up to 3 days.