Mozilla WebApp Manifest asks for HTTP Header

荒凉一梦 提交于 2019-12-02 10:25:27

问题


I've been searching for hours, but cannot find a solution.
Currently I would like to upload a first webapp to Mozillas new platform, and the second step to do so is, to add a manifest file.
I took the information from here and try to build the manifest with the name manifest.webapp
But the result is the following message:

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

What am I doing wrong. What line of code am I missing?


回答1:


The solution to your problem is to add a line in your .htaccess file so Apache creates the HTTP headers. You can read for more details here.



来源:https://stackoverflow.com/questions/8932010/mozilla-webapp-manifest-asks-for-http-header

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!