WSS cookies

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.

WSS cookies

Postby JasonLP » Tue Feb 10, 2015 2:02 pm

I have an application I've been working on for some time, and just noticed when I tried to update the version of CEF, that I am getting errors with websockets. Particularly, it looks like cookies are not being included in WSS calls, causing authentication errors.

Here is the console running against the 2062 branch:
Screen Shot 2015-02-10 at 1.41.58 PM.png
2062 branch
Screen Shot 2015-02-10 at 1.41.58 PM.png (124.91 KiB) Viewed 9654 times


And here is the console (running the exact same client code) running against the 2271 branch:
Screen Shot 2015-02-10 at 1.44.59 PM.png
2271 branch
Screen Shot 2015-02-10 at 1.44.59 PM.png (105.19 KiB) Viewed 9654 times


BTW, I also noticed this on the 2171 branch as well.

For what it's worth, running the page in Chrome works correctly.

Any thoughts? Maybe there's a new flag I need to set?

Thanks,
-Jason-
JasonLP
Mentor
 
Posts: 98
Joined: Fri Jul 25, 2014 10:10 am

Re: WSS cookies

Postby magreenblatt » Tue Feb 10, 2015 5:16 pm

Is the source page HTTP or HTTPS? Are they on the same or different domain? The behavior change could be related to https://code.google.com/p/chromium/issu ... 123862#c41.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: WSS cookies

Postby JasonLP » Wed Feb 11, 2015 11:38 am

The source page is HTTPS. And the websocket call is to the same domain.
JasonLP
Mentor
 
Posts: 98
Joined: Fri Jul 25, 2014 10:10 am

Re: WSS cookies

Postby JasonLP » Mon Feb 23, 2015 3:41 pm

Wondering if there is any more information available on this. This has become a major showstopper for us.

Can you give me a pointer of where to look in the chromium codebase to see where the cookies should be set?

Thanks.
JasonLP
Mentor
 
Posts: 98
Joined: Fri Jul 25, 2014 10:10 am

Re: WSS cookies

Postby awkwardken » Mon Mar 09, 2015 9:51 am

I hit the same roadblock, but it seems to not be an issue after I called CefCookieManager::SetSupportedSchemes and included "ws" and "wss"

Hope this helps
Andy
awkwardken
Newbie
 
Posts: 2
Joined: Fri Jan 16, 2015 3:21 pm

Re: WSS cookies

Postby JasonLP » Wed Mar 11, 2015 4:16 pm

Yes! THANK YOU! That worked perfectly. :)

How did you figure that one out?

-Jason-
JasonLP
Mentor
 
Posts: 98
Joined: Fri Jul 25, 2014 10:10 am

Re: WSS cookies

Postby magreenblatt » Wed Aug 12, 2015 9:47 am

Filed https://bitbucket.org/chromiumembedded/cef/issues/1684/ to support the WebSocket schemes by default.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: Majestic-12 [Bot] and 90 guests