I've never kept either of the cichlids, hence, cannot vouch the corydoras won't get eaten but going on what I know and the instinct, I think it can be tried, perhaps not with the tiniest of cories.
My cories co-habited with 2x-4x larger predatory tank mates and have been fine - their spines are very sharp and a good deterrent. But not all tank mates - certain predators, e.g., Pseudoplatystoma, Brashyplatystoma, silver arowana, would prey on them.