Missing required request header

My login route was working but after a brief period, it does not work anymore rather generates this error.
Missing required request header. Must specify one of: origin,x-requested-with
Internal Server error 500. Has anyone encountered this problem? I need help.