Dry-roast whole spices separately over gentle heat until fragrant. Cool, then grind to a fine powder.
Stir palm sugar into coconut milk over gentle heat until it has dissolved, then mix in all spices and flavourings. Keeps, refrigerated, for up to 48 hours.