0

我正在尝试将托管应用程序部署到 Firefox 市场。我使用tomcat作为服务器。当我提交 manifest.webapp 文件时,它向我显示一个错误

“清单必须与 HTTP 标头“Content-Type: application/x-web-app-manifest+json”一起提供。

我通过放置此行 ->“AddType application/x-web-app-manifest+json .webapp”创建了开发人员站点中指定的 .htaccess 文件。仍然,得到同样的错误。

是否可以通过 tomcat 服务器提供 manifest.webapp 文件?如何解决该错误。?提前致谢

4

1 回答 1

1

Theoretically this should not be a problem, you might want to check if you have not disabled override features in your .htaccess. If this is your server, you might want to add the content type declaration above in the main config, instead of the .htaccess file.

Alternatively, if you do not have access to the server configuration, you might try a dynamic approach: serving the manifest-file by specifying Content-Type on the fly using the contentType directive in the first line of your manifest code.

于 2013-07-06T13:46:51.267 回答