Microsoft redirect failure

My microsoft office 365 fails to redirect after authentication, cookies captures but fails to redirect problem

u need modified source code with force get function or modify outgoing hader and replace redirect uri