front oneself off
Advanced (C1) slang
To act confident or tough in front of others, sometimes pretending to be braver or stronger than you really are.
"He was fronting himself off in front of his mates, but everyone could see he was nervous."