2012-01-19 28 views
1

我一直在寻找几个小时,但找不到解决方案。
目前我想将第一个webapp上传到Mozilla的新平台,第二步是添加一个清单文件。
我把信息从here,并尝试建立一个名为manifest.webapp
清单,但结果是以下消息:
Mozilla WebApp Manifest要求HTTP头

•Your manifest must be served with the HTTP header "Content-Type: application/x-web-app-manifest+json". We saw "application/json". 

我在做什么错。我错过了哪几行代码?

回答

1

解决您的问题的方法是在.htaccess文件中添加一行,以便Apache创建HTTP标头。你可以阅读更多的细节here