how to get xhr request and setting headers also code example Example: js xmlhttprequest add header XMLHttpRequest.setRequestHeader(header, value)