Harassment is defined as unwanted attention of a sexual nature that places the victim in an awkward position.
This “category” can include attempts at rape, as well as questionable jokes, gestures, or even sounds that can offend and humiliate.
In the legal field, this term is applied to hierarchical relationships, that is, when a person shows inappropriate attention to a person who is dependent on him - for example, when a boss hints to a subordinate about sex in exchange for a promotion, etc.
The main thing is not to let things slide.
The first thing you should do is tell the harasser that his behavior is unacceptable: it is quite possible that he perceives his own actions as a kind of “compliment” and, thanks to the conversation, he realizes the inappropriateness of his behavior.
In addition, it is worth remembering that cases of harassment should be recorded - you can record it on a voice recorder, take a photo of the boss or take a screenshot of a greasy message, etc.
Try contacting higher management or the union - in general, whoever can influence the harasser.
Finally, if all of the above doesn't help, you can always quit, so don't discount this option.
Earlier we wrote about whether it is possible to develop a sense of humor .