Corneal collagen crosslinking is used to alter a characteristic of the cornea, such as thickness or refractive index, to correct wavefront aberrations, including higher-order aberrations. A scanning laser or the like is used to perform the corneal collagen crosslinking by locally altering the optical path length (thickness, refractive index, or both).