java - AppEngine 中的 crossdomain.xml

标签 java google-app-engine

我在 appengine 管理控制台的仪表板上收到 /crossdomain.xml 的 URI 错误通知。

  • 如何修复错误?

最佳答案

来自Adobe's site :

A cross-domain policy file is an XML document that grants a web client—such as Adobe Flash Player, Adobe Reader, etc.—permission to handle data across multiple domains. When a client hosts content from a particular source domain and that content makes requests directed towards a domain other than its own, the remote domain would need to host a cross-domain policy file that grants access to the source domain, allowing the client to continue with the transaction. Policy files grant read access to data, permit a client to include custom headers in cross-domain requests, and are also used with sockets to grant permissions for socket-based connections.

crossdomain.xml 是此类跨域策略文件的示例。

在您的网站上下文中,有人(可能是您,也可能是其他人)正在尝试从 Adob​​e 应用程序中访问您网站的内容。该应用程序试图成为一个好公民,在执行操作之前检查跨域策略文件是否存在。由于您没有提供此信息,因此您的日志中会收到 404

最简单的解决方法是编写一个 crossdomain.xml 文件,并从您的 App Engine 应用提供该文件。正在查找该错误的 Adob​​e 应用程序现在将获取一个文件,而不是 404,并且该错误将不再出现在您的日志中。

或者,您可以忽略该错误。与丢失 robots.txt 文件一样,404 错误不会对您的网站造成损害,它们只是偶尔会在您的日志中填充您不关心的错误.

关于java - AppEngine 中的 crossdomain.xml,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13484867/

相关文章:

python - 如何覆盖时间戳字段以进行单元测试?

java - 构建并运行您的 Apache Stanbol 实例 - 失败

java - 我正在 fragment 中启动我的 Activity ,但变量变得空了?

java - 使用 JDBC 的多个搜索条件

google-app-engine - 我应该如何编写我的 Google App Engine app.yaml 文件?

java - Maven Java GAE编译错误

java - 使用 ANTLR 将标记映射回 Java 源代码中的位置

java - 如何在 Eclipse 中将 "sysout"片段与选定的文本一起使用?

google-app-engine - 谷歌应用引擎 TCP/IP 连接

java - 一种将 appengine 数据存储实体转换为我的对象的方法?