SameSite

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

SameSite

Postby rado » Wed Dec 25, 2019 9:21 am

I'm making requests using CefURLRequest::Create(). I need to send and receive cookies so I'm using flag UR_FLAG_ALLOW_STORED_CREDENTIALS.
It works most of time but it seems cookie which includes the SameSite=Strict flag are not sent.
I'm using cef_binary_78.2.9+g4907ec5+chromium-78.0.3904.70_windows32. I'm testing it simply by requesting https://www.mocky.io/v2/5e0364be31000008156b2bba twice. Second request should send the cookie but it won't.
When I try request without SameSite https://www.mocky.io/v2/5e036cd5310000dea86b2bdb it works. Is it bug or does it work like this on purpose? I need this cookies to work. Thank you.
rado
Expert
 
Posts: 145
Joined: Wed Oct 05, 2011 3:32 am

Re: SameSite

Postby rado » Sat Jan 04, 2020 2:19 pm

I've tried to use cef_binary_79.0.10+ge866a07+chromium-79.0.3945.88_windows32, it didn't help.
rado
Expert
 
Posts: 145
Joined: Wed Oct 05, 2011 3:32 am

Re: SameSite

Postby magreenblatt » Sat Jan 04, 2020 2:49 pm

Please add a bug. You can also try running with the --disable-site-isolation-trials command-line flag to see if that works around the problem.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: SameSite

Postby rado » Sat Feb 22, 2020 2:34 am

I've found the problem. To make this kind of cookies working I have to call CefRequest::SetFirstPartyForCookies(). I'm sorry for false alarm, what to do with this issue now?
https://bitbucket.org/chromiumembedded/cef/issues/2853/cefurlrequest-not-sending-cookies-set-with
Maybe it is worth to be mentioned here https://bitbucket.org/chromiumembedded/cef/wiki/GeneralUsage. I've thought this is handled by the CefRequestContext.
rado
Expert
 
Posts: 145
Joined: Wed Oct 05, 2011 3:32 am

Re: SameSite

Postby magreenblatt » Sat Feb 22, 2020 9:55 am

Please comment your fix on that issue and change the status to closed.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 47 guests