打开托管的 KaiOS 应用程序时出错
Getting Error while opening hosted KaiOS app
我有一个 manifest.webapp
托管在我的应用程序根目录 (https://localhost:5001/manifest.webapp),当我在 KaiOS 模拟器中打开它时,出现以下错误:
Unable to access the app starting document https://localhost:5001/
,
got HTTP code 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 在 GET 之前进行 HEAD 调用,因此应该在您的服务器上实现,否则会出现此错误。
我有一个 manifest.webapp
托管在我的应用程序根目录 (https://localhost:5001/manifest.webapp),当我在 KaiOS 模拟器中打开它时,出现以下错误:
Unable to access the app starting document
https://localhost:5001/
, got HTTP code 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 在 GET 之前进行 HEAD 调用,因此应该在您的服务器上实现,否则会出现此错误。