> On Wed, Jan 26, 2011 at 7:02 AM, Alexey Romanenko <
slimu...@gmail.com>wrote:
>
>
>
>
>
>
>
> > Hello all.
>
> > If I try to set referer on xhr I get error Refused to set unsafe
> > header "Referer"
>
> > var xhr = new XMLHttpRequest();
> > xhr.open("GET", "
google.com", true);
> > xhr.onreadystatechange = function() {
> > if (xhr.readyState == 4) {
> > console.log(xhr);
> > }
> > }
> > xhr.setRequestHeader('Referer', '
http://google.com');
> > xhr.send();
>
> > This code print 'Refused to set unsafe header "Referer"' on console.
>
> > How can I change referer for my request?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Chromium-extensions" group.