It’s just a kind of “folk remedy” when you have stomatitis. It’s very annoying each time when you eat or drink something.
It’s said cocoa powder is effective to reduce pain and remedy for stomatitis. But it’s no medical evidence so doctors don’t recommend it.
Even so is it worth trying because the real doctor for the patient is you.