Everyone saying that you're out of order and that it's not the child's fault doesn't have to live with her like you do.
I do agree that you need to take more control. This might be a bad example but it's like training a dog. You can't give into everything they want. If she want's daddy then you need to step in and say no, I'm here. Get your husband to leave the room and you deal with her. You have to be consistent, take control, put your foot down. She will definitely be able to sense your disapproval of her which is why you need to try even harder.
You have to remind her that you are also her parent....whether she likes it or not!
When kids do something wrong, you tell them off, take a toy away, give them a time out etc.
My 6 year old gets grounded if he's naughty. No technology, limited play and no pudding even if he eats all his dinner. For us, this works and he learns his lesson. It sounds like your daughter needs more structure from you when your husband is around but at the same time your husband needs to be on the same level and supporting you.
Definitely set up some hidden cameras as it's clear your husband needs to see for himself what she is like. Maybe then he will start to realise what she is like and you can both work together to sort these issues out. Good luck OP