Disable SameSite Cookie policy in CefSharp V86.

Having problems with building or using the CefSharp .NET binding? Ask your CEF-related questions here. Please ask general usage questions on StackOverflow.

Moderator: amaitland

Disable SameSite Cookie policy in CefSharp V86.

Postby Dhvaj17 » Wed Feb 17, 2021 7:10 am

I am using CefSharp version 86.0.24, which uses chromium version 86 internally.

Starting V80 chromium has implemented samesite cookie policy due to which third party cookies having no same site and secure attribute are getting blocked using V80 and above.

In standalone chrome browser which is using chromium V88, this is still not enforced due to this flag legacysamesitecookiebehaviorenabled ,which is set at enterprise level.

Is there some flags or a way to suppress this setting in CEF sharp, as it has broke our lot of our application ?

Any help or lead will be appreciated.
Dhvaj17
Techie
 
Posts: 36
Joined: Fri Oct 16, 2020 4:51 am

Re: Disable SameSite Cookie policy in CefSharp V86.

Postby Dhvaj17 » Thu Feb 18, 2021 4:27 am

can someone help me ?
Dhvaj17
Techie
 
Posts: 36
Joined: Fri Oct 16, 2020 4:51 am

Re: Disable SameSite Cookie policy in CefSharp V86.

Postby magreenblatt » Thu Feb 18, 2021 1:50 pm

I don't know if this can be disabled with M86 specifically, but you can try adding --disable-features=SameSiteByDefaultCookies on the command-line. See https://www.chromium.org/updates/same-site for feature details and rollout timeline.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Disable SameSite Cookie policy in CefSharp V86.

Postby Dhvaj17 » Sat Feb 20, 2021 12:11 am

magreenblatt wrote:I don't know if this can be disabled with M86 specifically, but you can try adding --disable-features=SameSiteByDefaultCookies on the command-line. See https://www.chromium.org/updates/same-site for feature details and rollout timeline.


-disable-features=SameSiteByDefaultCookies this flag doesn't seems to be working.
Dhvaj17
Techie
 
Posts: 36
Joined: Fri Oct 16, 2020 4:51 am

Re: Disable SameSite Cookie policy in CefSharp V86.

Postby Dhvaj17 » Fri Feb 26, 2021 3:57 am

In CefSharp,
it works by setting the below flag,
CefSettings settings = new CefSettings()
settings.CefCommandLineArgs["disable-features"] = "SameSiteByDefaultCookies";
Dhvaj17
Techie
 
Posts: 36
Joined: Fri Oct 16, 2020 4:51 am


Return to CefSharp Forum

Who is online

Users browsing this forum: No registered users and 13 guests