Morocco is a Muslim country with liberal views and is generally tolerant for all. We do recommend that women dress more conservatively to avoid unwanted attention. Looser fitting clothing, longer skirts and dresses and tops with sleeves are recommended.
There is no place where anyone needs to cover their hair in any circumstance in Morocco.
You are welcome to dress as you choose and you will see all styles in the major cities, but to avoid attention and show respect toward the devout, we recommend a scarf over shoulders and a little discretion in showing “skin”.