Page 1 of 1

Disable SameSite Cookie policy in CefSharp V86.

PostPosted: Wed Feb 17, 2021 7:10 am
by Dhvaj17
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.

Re: Disable SameSite Cookie policy in CefSharp V86.

PostPosted: Thu Feb 18, 2021 4:27 am
by Dhvaj17
can someone help me ?

Re: Disable SameSite Cookie policy in CefSharp V86.

PostPosted: Thu Feb 18, 2021 1:50 pm
by magreenblatt
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.

Re: Disable SameSite Cookie policy in CefSharp V86.

PostPosted: Sat Feb 20, 2021 12:11 am
by Dhvaj17
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.

Re: Disable SameSite Cookie policy in CefSharp V86.

PostPosted: Fri Feb 26, 2021 3:57 am
by Dhvaj17
In CefSharp,
it works by setting the below flag,
CefSettings settings = new CefSettings()
settings.CefCommandLineArgs["disable-features"] = "SameSiteByDefaultCookies";