< link rel =" manifest" HREF =" ./的manifest.json">导致重定向到microsoft.login CORS [英] <link rel="manifest" href="./manifest.json"> causes redirect to microsoft.login CORS
问题描述
我正在创建一个在sharepoint上托管的网络应用,但不知何故 < link rel =" manifest" HREF =" ./的manifest.json">导致重定向并给我一个CORS错误。
有人知道如何解决这个问题吗?
请尝试使用此:
< link rel =" manifest" HREF =" /manifest.json" crossorigin =" use-credentials">
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link
我建议您提供有关SharePoint应用程序的更多信息以供进一步研究。代码在哪里使用?该应用是SharePoint托管应用或SharePoint提供商托管应用?
最好的问候,
丹尼斯
I'm creating a web-app hosted on sharepoint, but somehow <link rel="manifest" href="./manifest.json"> causes a redirect and gives me a CORS error.
Does anybody know how i can fix this?
Hi,
Please try to use this:
<link rel="manifest" href="/manifest.json" crossorigin="use-credentials">
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link
I suggest you provider more information about the SharePoint app for further research. Where is the code use? The app is a SharePoint Hosted app or SharePoint Provider hosted app?
Best Regards,
Dennis
这篇关于< link rel =" manifest" HREF =" ./的manifest.json">导致重定向到microsoft.login CORS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!