Heat canola oil in a skillet over medium-high heat. Add shallots, red chili pepper, and ginger and cook until fragrant, about 1 min. Add corn. Cook, tossing occasionally, until the corn is crisp-tender, 3 to 5 min. Season with salt. To serve, drizzle with coconut milk and top with torn fresh basil.