Mozilla WebApp清单要求输入HTTP标头 [英] Mozilla WebApp Manifest asks for HTTP Header

查看:65
本文介绍了Mozilla WebApp清单要求输入HTTP标头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经搜索了几个小时,但是找不到解决方法.
目前,我想将第一个Web应用程序上传到Mozillas新平台,而第二步是添加清单文件.
我从此处中获取了信息,并尝试使用名称构建清单manifest.webapp
但是结果是以下消息:

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?

推荐答案

解决此问题的方法是在.htaccess文件中添加一行,以便Apache创建HTTP标头.您可以在此处阅读更多信息.

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.

这篇关于Mozilla WebApp清单要求输入HTTP标头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆