문제

I'm using a URLRequest to get a resource. I need to clear the Referrer information in the request. Is there a way to do this?

Snippet:

        sound = new Sound();
        var req:URLRequest = new URLRequest(url);
        req.method = "POST";

        req.requestHeaders = new Array(new URLRequestHeader("Referrer", ""));
        sound.load(req);
도움이 되었습니까?

해결책

According to the ActionScript docs, there is a list of blacklisted header attributes that can't be modified. So I just set up a proxy for the request and modify the header there.

다른 팁

There is that old HTML trick to remove referrer header from requests using data::

<iframe src='data:text/html,<object type="application/x-shockwave-flash" data="[flash_file_url]"></object>'></iframe>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top