gpt4 book ai didi

javascript - 如何在 Apache shibboleth 管理的受限站点上声明 manifest.json 链接标记?

转载 作者:行者123 更新时间:2023-11-30 06:11:35 25 4
gpt4 key购买 nike

尝试访问 manifest.json 时控制台显示错误,我将其声明为:

<link href="manifest.json" rel="manifest"/>

list 标签是否可以内联声明,或者在这种情况下声明它的最佳方式是什么?

<link href="manifest.json" rel="manifest"/>除非已经在浏览器中登录,否则无法访问。

<link href="manifest.json" rel="manifest"/>

这些是控制台上显示的错误消息:

Access to fetch at 'manifest.json' redirected from 'https://example.com' from origin 'https://restrictedexample.com' has been blocked by CORS policy: No'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to fetch the resource with CORS disabled.

最佳答案

我不确定其他人是否需要类似的帮助,但是使用以下标签解决了我的问题:

<link href="manifest.json" rel="manifest" crossorigin="use-credentials"/>

现在,我不再收到任何错误。

关于javascript - 如何在 Apache shibboleth 管理的受限站点上声明 manifest.json 链接标记?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58592874/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com