The disclosure relates to a cosmetic composition for the hair, packaged in an aerosol device, comprising polyols in high concentration together with anionic fixing polymers. It further relates to a cosmetic method for the hair comprising the application of this composition to the hair, and to its use for imparting a waxy effect to the hair.