some small modifications tried to add withCredentials option for like but does not work at the moment