Unable to open a custom SharePoint form in a SharePoint tab in the new Teams desktop client
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
None
What browser(s) / client(s) have you tested
- [ ] 💥 Internet Explorer
- [ ] 💥 Microsoft Edge
- [ ] 💥 Google Chrome
- [ ] 💥 FireFox
- [ ] 💥 Safari
- [ ] mobile (iOS/iPadOS)
- [ ] mobile (Android)
- [ ] not applicable
- [X] other (enter in the "Additional environment details" area below)
Additional environment details
- New Teams Desktop Client > SharePoint tab
Describe the bug / error
While opening a custom form from a list view in a SharePoint tab in the new Teams desktop client, spserviceworker cuts off authentication cookies and finally redirects to login.microsoft.com:
- listform.aspx redirects to the right URL (a custom form)
- spserviceworker (https://res-1.cdn.office.net/files/odsp-web-prod_2023-12-01.001/spserviceworker.js) doesn't pass authentication cookies (SPOIDCRL)
- Redirects to /_layouts/15/Authenticate.aspx
- Redirects to /_forms/default.aspx
- Redirects to https://login.microsoftonline.com/
Network logs:
Steps to reproduce
- Create a custom form for a SharePoint list or just add assign any page from the same site to ContentType.DisplayFormUrl https://learn.microsoft.com/en-us/previous-versions/office/sharepoint-csom/ee540653(v=office.15)
- Add a SharePoint tab in the New Teams desktop client and select the SharePoint list with customized form
- Open a form
- You'll get an empty page (login.microsoftonline.com)
Expected behavior
How it works in the old Teams desktop client:
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
The custom SharePoint form created using the tutorial is not functioning in the new Microsoft Teams desktop version.
Environment:
Microsoft Teams Desktop Version: 23320.3027.2591.1505 Client Version: 49/23113028718
Steps to Reproduce:
- Create a custom form using the tutorial
- Create a SharePoint tab in Misrosoft Teams with a list view
- Try to open list item form
Expected Behavior:
List form opens normally
Actual Behavior:
Blank screen appears
Logs:
Refused to display 'https://login.microsoftonline.com/' in a frame because it set 'X-Frame-Options' to 'deny'.
Screenshots:
Number of redirects happen in MS Teams tab, but /_layouts/15/SPListForm.aspx never loads
This happens because /_layouts/15/listform.aspx does not pass auth cookie
Normal behaviour in SharePoint
Any updates on the issue?
Hello @jusper-dk, Thank you for bringing this issue to our attention. Could you please confirm if the issue still persists for you?
We are closing this issue for now. If the problem persists, feel free to reopen it or open a new one.