Dimethyl fumarate (DMF) is a drug that is orally administered for the treatment of relapsing-remitting multiple sclerosis. However, DMF causes gastrointestinal side effects and flushing in 43 % of patients, which significantly contributes to treatment discontinuation. To reduce side effects and increase patient compliance, the aim of this study was to develop a thermosensitive chitosan/glycerophosphate hydrogel for the nasal administration of DMF. A binary system of DMF with hydroxypropyl-β-cyclodextrin (HP-β-CD) was made and included in the hydrogel precursor solution. The precursor solution (drug content, DMF stability, thermogelling properties, viscosity), and the resulting thermosensitive hydrogel (mucoadhesion, in vitro DMF permeation) were characterized. HP-β-CD was able to interact with DMF and improve its water solubility. The leader thermosensitive nasal solution, G1 solution, was loaded with approximately 92 % DMF, which remained stable for 21 days. The G1 solution formed a hydrogel in approximately 2–1 min; it had a pH of 6.8 ± 0.06 and caused no significant change in the osmolality of the simulated nasal medium. The G1 hydrogel showed good mucoadhesive properties and released DMF that permeated in vitro in a controlled manner. As a result, G1 is a potential new approach to exploit the intranasal administration of DMF for treating multiple sclerosis.