Forum Discussion

ceooptimusprime's avatar
ceooptimusprime
Copper Contributor
May 02, 2024

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.



    • ceooptimusprime's avatar
      ceooptimusprime
      Copper Contributor
      Issue is seen only in new Teams desktop app. In Teams classic desktop app it works fine.
      • Dinesh-MSFT's avatar
        Dinesh-MSFT
        Icon for Microsoft rankMicrosoft

        Hi ceooptimusprime

        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:

        https://datatracker.ietf.org/doc/html/draft-cutler-httpbis-partitioned-cookies#name-applying-limits-to-partitio

         

        If you need to store more than 10KB worth of session data, you can explore using LocalStorage or IndexedDB instead.

Resources