Fixed cors issue in logout