set xhr headers on page request code example Example: js xmlhttprequest add header XMLHttpRequest.setRequestHeader(header, value)