Skip to main content

Dynamics 365 is blocking third-party cookies in Chrome

editSubscribe (6) ShareShare
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:


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?