Preheat oven to 400 degree F. Coat a 15x10x1-inch baking pan with cooking spray; set aside.
Mix corn with olive oil and jalapeno, if using, in a medium bowl. Spread the corn mixture out evenly in the prepared pan. Roast corn, stirring once, until browned slightly and crisp tender, 10 to 15 minutes.
Scrape the corn mixture back into the bowl and mix in cilantro, coconut, lime juice, and salt. Serve warm.