Add custom headers to xhr request
Add custom headers to xhr request, bug fixed