Added Authorization header support for realm.
X-Xsrf-Cookie was not working. Fixed.