That’s a terrible way to wire it. Bring the white as neutral and black as line right from one box to the other by connecting them at the ceiling and then use the red for the load from either box to the light.
That’s a terrible way to wire it. Bring the white as neutral and black as line right from one box to the other by connecting them at the ceiling and then use the red for the load from either box to the light.