In a saucepan, combine the coconut milk, sweet anise seeds, cloves, cinnamon sticks, salt, and papelón. Place over medium heat and stir until the papelón is completely dissolved. Bring the mixture to a gentle simmer.
Let the mixture simmer for about 10-15 minutes, stirring occasionally to infuse the flavors.
After simmering, remove the saucepan from the heat. Using a fine mesh strainer, strain the mixture to remove the sweet anise seeds, cloves, and cinnamon sticks.
Return the strained mixture to the saucepan and place it back over low heat.
Gradually add the pre-cooked corn flour to the mixture, stirring constantly to prevent lumps from forming. Continue stirring until the mixture thickens to a pudding-like consistency.
Taste and adjust the sweetness and saltiness according to your preference. Add more papelón if needed.
Once the mixture has thickened, remove the saucepan from the heat.
Pour the majarete mixture into individual serving bowls or a large bowl (you can also use a gelatin mold). Smooth the surface with a spatula or the back of a spoon.
Allow the majarete to cool at room temperature for about 30 minutes, then transfer it to the refrigerator to chill for at least 2 hours, or until completely set.
Before serving, sprinkle ground cinnamon over the top of the chilled majarete for garnish. Serve the majarete cold as a refreshing and creamy dessert option.