The influence of the Coriolis inertial force, generated by orbital and spin motions of distant objects, on the energies of electromagnetic radiation during the exchange of photons between them is shown. The presence of a red or blue spectral shift arising from this influence has been demonstrated, which is fully consistent with the registered data measured from the spectral observations of the stars and galaxies. Using the dependencies derived in the article, the orbital velocities, angular velocities and spectral offsets for 18 randomly selected nearby stars from our galaxy were calculated, as well as the orbital velocities, angular velocities and spectral offsets of 31 randomly selected galaxies from the visible universe. The explanation of spectral shifts accepted in astrophysics with the Doppler effect implies the moving away or approaching of the light sources, which leads to the assumption of the expansion of the universe, while the influence of the Coriolis force discussed in the article gives the same results in the spectral shifts without the need for this assumption.