HEAD XMLHttpRequest on Chromium
Posted
by Treviño
on Stack Overflow
See other posts from Stack Overflow
or by Treviño
Published on 2010-04-08T21:27:56Z
Indexed on
2010/04/08
21:33 UTC
Read the original article
Hit count: 502
I'm trying to get the HEAD response with an XMLHttpRequest in Chromium to retrive the location URL of a compressed url, but it fails:
var ajax = new XMLHttpRequest();
ajax.onreadystatechange = function() { if (ajax.readyState == 4) alert(ajax.getResponseHeader("Location")) };
ajax.open('HEAD', "http://bit.ly/4Agih5", false);
ajax.send();
// Refused to get unsafe header "Location"
// Error: NETWORK_ERR: XMLHttpRequest Exception 101
© Stack Overflow or respective owner