Using an electric mixer, beat butter and sugar together until light and fluffy. Add cocoa and flour. Beat on low speed until combined. Stir in cornflakes. Roll level tablespoons of mixture into balls. Flatten slightly. Place onto prepared trays, 4cm apart, to allow room for spreading during cooking.