The url I was calling was "http" and the server redirects it to https. Apparently this drops the headers. Didnt happen through postman !!
Solution: use httpS