< link rel =" manifest" HREF =" ./的manifest.json">导致重定向到microsoft.login CORS [英] <link rel="manifest" href="./manifest.json"> causes redirect to microsoft.login CORS

查看:472
本文介绍了< link rel =" manifest" HREF =" ./的manifest.json">导致重定向到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


这篇关于&lt; link rel =&quot; manifest&quot; HREF =&QUOT; ./的manifest.json&QUOT;&GT;导致重定向到microsoft.login CORS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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