My mother doesn't trust my best friend

Me and my best friend have been friends for years. Keep in mind I am a trustworthy. I haven't done anything to lose any trust from my mom. I get good grades and don't party or do anything "bad". So today I asked if she could sleepover while my mom was at work and my mom said "no I can't trust her" so I asked her what she meant and she said "she used bad language that you shouldn't be around, you always tell me how mean she is, and I don't like the way she treated you when you were fighting". Hearing this from my mom made me really uncomfortable and makes me not want to even be her friend any more. My friend is my one and only friend who I can hang out with outside of school so I don't want to stop being friends with her, certainly because of my mothers concerns.