【问题标题】:Getting Error while opening hosted KaiOS app打开托管的 KaiOS 应用程序时出错
【发布时间】:2019-10-02 21:23:34
【问题描述】:

我有一个manifest.webapp 托管在我的应用程序根目录 (https://localhost:5001/manifest.webapp),当我在 KaiOS 模拟器中打开它时,我收到以下错误:

无法访问应用启动文件https://localhost:5001/, 得到 HTTP 代码 405

其响应的卷曲是:

HTTP/1.1 200 OK
Date: Wed, 02 Oct 2019 21:18:41 GMT
Content-Type: application/x-web-app-manifest+json
Content-Length: 6097
Cache-Control: no-cache
Pragma: no-cache
Expires: -1
Last-Modified: Tue, 01 Oct 2019 07:35:10 GMT
Accept-Ranges: bytes
ETag: "1d5782ac10b5cd1"
Set-Cookie: ClientId=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax
Set-Cookie: ClientId=922A46E87C9646C18555E7E7DE84840F; expires=Mon, 02 Oct 2119 21:18:42 GMT; path=/; samesite=lax
Access-Control-Allow-Origin: *
x-frame-options: allow-from https://example.com/
x-web-server-version: 1.0.0.0
x-besku: UNKNOWN

{
  "name": "abc",
  "short_name": "abc",
  "icons": [..],
 "scope": "/",
  "start_url": "/abc/?start_url=sss",
  "display": "standalone",
  "background_color": "#ffffff",
  "theme_color": "#0078d7"

...

任何帮助将不胜感激。

【问题讨论】:

    标签: firefox-os kaios


    【解决方案1】:

    Firefox os/kaios 在 GET 之前进行 HEAD 调用,因此应该在您的服务器上实现,否则会出现此错误。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-04-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多