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?

  • Community member Profile Picture
    3 on at
    Dynamics 365 is blocking third-party cookies in Chrome
    Any update? I think a clear answer is not avaialable for this issue.
    Alessandro
  • Community member Profile Picture
    10 on at
    Dynamics 365 is blocking third-party cookies in Chrome
    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.




  • Verified answer
    Community member Profile Picture
    7 on at
    Dynamics 365 is blocking third-party cookies in Chrome
    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
    5 on at
    Dynamics 365 is blocking third-party cookies in Chrome
    We have the same issue. Any idea how to fix this?

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,209 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,923 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans