在 302 重定向或 embed/object/iframe 标记内的元素(跨域)后获取 flash src

Getting flash src after a 302 redirect OR an element inside an embed/object/iframe tag (cross-domain)

URL 示例。com/redir 会自动将用户 (HTTP 302) 重定向到 example.com/hi.SWF? message=消息+值。

在下面的示例中,如何使用 javascript 或 flash 获取消息值?

<!DOCTYPE html>
<html>
    <body>
         <embed id="foo" src="https://example.com/redir"></embed>
         <!-- Remember that example.com/redir will be automatically redirected to example.com/hi.SWF?message=Message+Value -->

         <!-- The code to get the message value must go here -->

    </body>
</html>

考虑一下:

  1. 上面的 .html 托管在 cross-domain.com 中,就像涉及的任何其他文件一样在解决方案中 (.swf, .js, .html, .css, 等等);
  2. 您无法控制 example.com;
  3. 您无法控制 hi.SWF;
  4. 您可以将 标签更改为