Hi,
(For Blueprint)
The solution is in the Spring Arm Component of your actor/pawn/character/etc., u need to enable the Use Pawn Control Rotation . Do not enable the option in the Camera component as it will then rotate independent of the actor.
Hope this helps.