Forum Discussion
MS Teams bot task/fetch desktop app cookies
Issue: In the Teams desktop app, all cookies are not set. Only 2 cookies are getting set in the Teams desktop app.
The issue is not seen in the web-based Teams app. In the desktop app, all cookies are not showing up. Only 2 cookies are getting set in the desktop app.
1. When the URL connect.abc.com/form.html is open through task/fetch we are setting cookies and HTML content using Response.
These cookies are used to make subsequent API requests to load the drop-down values of the form. We have verified that cookies are set and working properly in a web browser.
2. The issue is in the desktop app as the desktop app is not setting all cookies it is only setting 2 cookies.
- Dinesh-MSFTMicrosoft
Hi ceooptimusprime - Thanks for raising the query.
We will look into it and let you know the updates.- ceooptimusprimeCopper ContributorIssue is seen only in new Teams desktop app. In Teams classic desktop app it works fine.
- ceooptimusprimeCopper ContributorDinesh-MSFT Please share a update.
- Dinesh-MSFTMicrosoft
Sorry for the delay in the response.
We tried to repro this issue. We couldn't find any error. We are checking this internally and let you know the update.
Update:What is the size of the cookies that you are trying to set?
Cookies in the Teams Desktop Client are automatically partitioned in order to support Multi-Tenant Multi-Account (MTMA) scenarios.
This same partitioning is also coming to the Web Client with the rollout of 3P Cookie Deprecation (3PCD) in Chrome and Edge. The partitioned cookie jar limit is 10KB so if an app tries to store cookies with a combined size greater than that some of the cookies will get dropped:If you need to store more than 10KB worth of session data, you can explore using LocalStorage or IndexedDB instead.