Django server responding that 'AnonymousUser' object has no attribute 'uuid'

I have developed the angular web app with Django. Now I am converting to the ionic app and hitting the same server using Cros_origin_allowed. Login is working fine. once I logged in every Http call come with ‘AnonymousUser’ object has no attribute ‘uuid’ . but same is working for web app. why? how to solve this?