In the will, you dispose of the property that is in your ownership and your shares of property that are in common joint ownership (for example, property acquired in marriage). Therefore, your husband's consent is not required for such disposition of property.
If you want to bequeath to your child, for example, the entire house that is jointly owned with your husband, then you cannot do without his consent.