Teams Tab应用程序错误 - 拒绝显示' https://somedomain.sharepoint.com/'在框架中,因为它设置了x-frame-options'到Sameorigin'
将Teams Tab应用程序重定向到SharePoint站点(例如Viva应用程序)时,上述错误正在出现标签。这仅发生在Microsoft 365用户帐户中。是否有任何理由SharePoint.com在清单中允许?
重定向URL https://devacc.sharepoint.com/_layouts/15/teamslogon.aspx
?强>明显
{
"$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.9/MicrosoftTeams.schema.json",
"manifestVersion": "1.9",
"version": "1.0.0",
....
....
"validDomains": [
"{teamSiteDomain}",
"*.login.microsoftonline.com",
"*.sharepoint.com",
"resourceseng.blob.core.windows.net"
],
"webApplicationInfo": {
"resource": "https://{teamSiteDomain}",
"id": "bbc6d1e2-2233-4dc7-1122-0eaa862aaccc"
},
"isFullScreen": true
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
浏览器相同的原始策略限制可防止网页与所服务的网页提出不同域的请求。
因此,您可以将配置或内容页面重定向到另一个域或子域。您的跨域导航逻辑需要允许团队客户端在加载或与选项卡进行加载或通信时,在应用程序清单中验证原点。
参考文档:
Browsers same-origin policy restriction prevents webpages from making requests to different domains than the served web page.
So, you can redirect the configuration or content page to another domain or subdomain. Your cross-domain navigation logic needs to allow the Teams client to validate the origin against a static validDomains list in the app manifest when loading or communicating with the tab.
Ref Doc:https://learn.microsoft.com/en-us/microsoftteams/platform/tabs/how-to/tab-requirements