I thought it was the same one that I read that seems yaoi where the girl lead dresses herself as a man so it seems yaoi but no. It's originally a novel and I kinda like the novel as it is more understandable. It's kinda great.
Queen of poison: The Legend of a Super Agent, Doctor and Princess