如何在本地主机上加载执行的 swf 时禁用 crossdomain.xml 检查?
Error #2044: Unhandled SecurityErrorEvent:. text=Error #2048: Security sandbox violation: http://localhost:2541/xxx.swf cannot load data from http://www.com/xxx.swf.
我想将完全信任分配给本地运行的 HTML5 Web 应用程序。我想禁用任何跨域检查。
为什么?一些外部服务器不为其托管的 SWF 文件提供 crossdomain.xml。我在本地运行。我希望完全信任调试目的。
我怎么做?
我不会考虑 AIR,因为它不能在 HTML5 应用程序中使用。
将 URL“ http://localhost:2541/xxx.swf ”添加到“C:\Users\Arvo\AppData\Roaming\Macromedia\Flash Player#Security\FlashPlayerTrust\u.cfg”没有帮助。
参考: