2

当我启动 APE 测试时,我在 FF 上收到此错误:

运行测试:初始化 APE 客户端

无法加载 APE JSF

在 IE 和 Chrome 中一切正常...

4

1 回答 1

0

我今天遇到了同样的问题。我猜你是想让 APE 在你的本地机器上工作。Firefox 对 TLD 有特殊限制以避免 XSS 脚本。我通过将本地域从 重命名为 解决了这个localdomain问题localdomain.local。因此,您需要将以下内容添加到您的 /etc/hosts 中(假设您正在使用 *nix 平台):

127.0.0.1 localdomain.local
127.0.0.1 0.localdomain.local
127.0.0.1 1.localdomain.local
127.0.0.1 2.localdomain.local
127.0.0.1 3.localdomain.local
127.0.0.1 4.localdomain.local
127.0.0.1 5.localdomain.local
127.0.0.1 6.localdomain.local
127.0.0.1 7.localdomain.local
127.0.0.1 8.localdomain.local
127.0.0.1 9.localdomain.local

您还应该更改您的 vhost 和 Demos/config.js 配置。假设您在 wwwroot/ape/APE_JSF 上安装了 APE JSF,您现在可以通过以下 url 访问配置检查:

http://localdomain.local/ape/APE_JSF/Tools/Check/index.html

来源: http: //mxr.mozilla.org/mozilla-central/source/netwerk/dns/effective_tld_names.dat

于 2011-12-10T16:28:56.763 回答