Forum Discussion
My SharePoint page is loading in Teams from the browser, but not loading in the Teams desktop app
Hello All,
I have created a Teams app and added a SharePoint page as a Teams personal tab.
I have referred to the links below for the same.
https://www.c-sharpcorner.com/article/sharepoint-site-as-static-app-in-ms-teams/
https://aakashbhardwaj619.github.io/2020/01/16/Add-SharePoint-Site-To-Teams-Personal-App.html
My SharePoint page is loading in Teams from the browser, but not loading in the Teams desktop app.
Please refer to the screenshot below.
Thanks
6 Replies
- BhoomeshJoshiBrass Contributor
js4 - Thank you for your reply.
Nivedipa-MSFT - Do you have any updates on this?- Nivedipa-MSFT
Microsoft
Your SharePoint page loads in Teams from the browser, but not in the Teams desktop app. This is a common issue and can be caused by:
- Embedding Restrictions:
- The SharePoint site may prevent embedding in other sites (Teams uses an iframe for tabs).
- Check your SharePoint page's Content Security Policy (CSP) and X-Frame-Options headers. The site must allow embedding in Teams.
- Conditional Access Policies:
- If your organization enforces Conditional Access, some tabs (including SharePoint) may not load in the Teams desktop client, but will work in the browser.
- See: Tabs not working after enabling Conditional Access
- Workarounds:
- Use the "Open in browser" option in Teams if available.
- If possible, use the SharePoint Pages app instead of a Website tab for better compatibility.
References:
- Nivedipa-MSFT
Microsoft
@BhoomeshJoshi - Could you please let me know if the suggestion above resolved your issue, or are you still experiencing the problem?
- Nivedipa-MSFT
Microsoft
@BhoomeshJoshi - Thanks for bringing this issue to our attention. We will check and update you soon.
- js4Copper Contributor
It's great to connect with you. I understand you're facing a common issue where your SharePoint page, added as a personal tab in Teams, loads correctly in the browser but not in the desktop app. This can be frustrating, but let's troubleshoot it together.
Here are a few steps that often resolve this issue:
1. Clear Your Teams Cache
Sometimes, a corrupted cache in the desktop app can cause display issues. To fix this:
- Fully quit Microsoft Teams.
- Navigate to %appdata%\Microsoft\Teams in your file explorer.
- Delete the contents of the following folders: Cache, Code Cache, GPUCache, IndexedDB, and Local Storage.
- Restart Teams.
2. Check for Security Restrictions
The Teams desktop client might have stricter security settings.
- iFrame restrictions: The SharePoint page might have headers (X-Frame-Options) that prevent it from being loaded in an iframe, which is how it's displayed in Teams. Check your SharePoint site settings to ensure embedding is allowed.
- Conditional Access Policies: Your organization's Azure AD policies might restrict access to certain resources from the desktop app under specific conditions.
3. Review Your App Manifest
Double-check the manifest file (manifest.json) for your Teams app.
- Ensure the contentUrl for your personal tab is correct and doesn't contain any typos.
I hope one of these suggestions helps you solve the problem. If you found this information useful, please give it a vote so others with the same issue can find it.