adding xhr header