"Tongue in cheek" origin...?

The thread title says it all: what is the origin of the phrase “tongue-in-cheek”?

Someone appears to have anwered this effectively on some other message board

Wordorigins seems to contradict that, though.