Preheat the oven to 400°F (207°C).
Blend the butter, basil, garlic, honey, and cayenne pepper in a food processor.
Place the corn on a baking sheet lined with parchment paper or aluminum foil. Brush the butter generously over the corn and bake for 20 minutes.
Sprinkle the shaved Parmesan cheese on top of the corn and bake for an additional 5 minutes, or until the cheese is melted and slightly browned. Remove from the oven and serve immediately.