Slice the kernels from the corn cobs and place in a large bowl.
Add the onion, garlic, egg, cornflour, turmeric, ginger, kaffir lime leaves and chilli, if using. Season with salt and pepper and mix well. Leave the mixture to sit for 5 minutes.
Heat oil in a frying pan about 4cm deep.
Spoon portions of the corn mixture into the hot oil and fry in batches, flipping half way through, until golden and crisp on both sides.
Drain on paper towels, then serve hot with sweet chilli sauce.
