web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Dynamics 365 is blocking third-party cookies in Chrome

(6) ShareShare
ReportReport
Posted on by 18

I am integrating a single-page application in Dynamics 365 using Channel Integration Framework. I am using Google Chrome as browser. My application also used cookies to maintain user sessions.

However, Google has announced that from Q1 2024 here: Prepare for phasing out third-party cookies - Chrome for Developers

That they will be phasing out support for third-party cookies. My application behaves as third-party in Dynamics 365 which cannot function without cookies.

I have simulated the phasing out of third-party cookies by browsing to the following URL in Chrome:

    chrome://flags/#test-third-party-cookie-phaseout

And set the Test Third Party Cookie Phaseout to Enabled but my application is not displaying.

I have tried their solution which recommends using CHIPS (Cookies Having Independent Partitioned State) by adding the /Partitioned/ option in the /Set-Cookies/ header but it does not work.

Here is the code I am using in ASP.NET Web API:

    string setCookieHeader = Response.Headers[/Set-Cookie/];    if (!string.IsNullOrEmpty(setCookieHeader))    {        setCookieHeader += /;Partitioned/;        Response.Headers[/Set-Cookie/] = setCookieHeader;    }

With third-party phasing out simulated, the above code should have worked.

Is this because Dynamics 365 is loading my application in an ?

I do not have control over the creation of since it is in Dynamics 365. What is the solution to this problem since the /Partitioned/ attribute is not working in Dynamics 365 either?

I have the same question (0)
  • Community member Profile Picture
    5 on at
    We have the same issue. Any idea how to fix this?
  • Verified answer
    Community Member Profile Picture
    33 on at
    There are several potential solutions and workarounds you can consider:
     
    1. Migrate to first-party cookies:
    This is the most recommended solution by Google. Work with Microsoft to migrate your application's cookie usage to first-party cookies within the Dynamics 365 domain. This way, your application can continue functioning even after third-party cookies are phased out.
     
    2. Utilize alternative session management techniques:
    Explore alternative methods for managing user sessions, such as:
    Session tokens: Generate and store session tokens in the browser's local storage or the application's own storage mechanism.
    Server-side session management: Implement session management on the server-side using technologies like ASP.NET Session State or Azure App Service Session.
    Authorization tokens: Use OAuth or other authorization protocols for authentication and authorization.

    3. Update Channel Integration Framework configuration:
    Investigate if any configuration options within the Channel Integration Framework can be adjusted to allow your application to function without relying on third-party cookies.
    This might involve specifying specific cookies as exceptions or utilizing alternative communication channels between your application and Dynamics 365.
     
    Additional Microsoft own resources can help you out:
     
    I hope these would work hopefully,
    Thanks,
  • Community member Profile Picture
    10 on at
    Apparently, the issue is with loading of library https://<org_id>.crm4.dynamics.com//WebResources/Widget/msdyn_ciLibrary.js while loading the Channel Provider. As seen in screen capture below, cookies are getting blocked when loading msdyn_ciLibrary.js. As the application needs this library to interact with Channel Provider, the application fails to load. Not sure if the application can do anything about this?
     


    When third party cookies are enabled, applications loads but the msdyn_ciLibrary.js request in Chrome network tab shows a message about cookies that would be affected once Chrome phases out third-party cookies. Looks like Microsoft needs to fix this.




  • Community member Profile Picture
    3 on at
    Any update? I think a clear answer is not avaialable for this issue.
    Alessandro

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 70 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 33 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans