Internet Explorer http referer issue

前端 未结 6 913
孤独总比滥情好
孤独总比滥情好 2020-12-06 03:26

it seems I have run into a problem with Internet Explorer 7. I have an html page that has links to files on another server. The server I am linking to checks the referrer of

6条回答
  •  悲哀的现实
    2020-12-06 03:57

    I find this solution at http://dracoblue.net/dev/referer-with-documentlocation-is-broken-in-internet-explorer/145/ , but i haven't tried myself

    function goto(url)
    {
        var referLink = document.createElement('a');
        referLink.href = url;
        document.body.appendChild(referLink);
        referLink.click();
    }
    

提交回复
热议问题