CefResourceHandler CanSetCookie Method

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

CefResourceHandler CanSetCookie Method

Postby sjaved » Tue Aug 09, 2016 7:28 am

Hi,
I was looking for a feature to disable cookies; and found method CanSetCookie with CefResourceHandler. There was also a request for the patch with the same feature i.e.
https://bitbucket.org/chromiumembedded/ ... andler-for
are both of them the same? or are there any differences?
any clue?

Thanks In advance.

Best Regards,
sjaved
Techie
 
Posts: 15
Joined: Wed Jun 15, 2016 3:47 am

Re: CefResourceHandler CanSetCookie Method

Postby magreenblatt » Fri Aug 12, 2016 8:19 am

What do you mean by "disable cookies"? What behavior are you seeking?
magreenblatt
Site Admin
 
Posts: 10749
Joined: Fri May 29, 2009 6:57 pm

Re: CefResourceHandler CanSetCookie Method

Postby sjaved » Fri Aug 12, 2016 9:23 am

Hi,
I want to continue the work of Kevin, which was to support the custom handler for CefCookieManager(https://bitbucket.org/chromiumembedded/ ... andler-for).

Before doing that i wanted to know if it is possible to achieve the same functionality using CefResourceHandler, which also contains the methods cansetcookie and cangetcookie.

Thanks in advance

Best Regards,
sjaved
Techie
 
Posts: 15
Joined: Wed Jun 15, 2016 3:47 am

Re: CefResourceHandler CanSetCookie Method

Postby magreenblatt » Fri Aug 12, 2016 9:33 am

So you want to block specific origins from accessing specific cookies on a case-by-case basis? Why? What is your particular use case?
magreenblatt
Site Admin
 
Posts: 10749
Joined: Fri May 29, 2009 6:57 pm

Re: CefResourceHandler CanSetCookie Method

Postby sjaved » Fri Aug 12, 2016 9:42 am

we want either to block setting the cookies for the whole application or sometimes it can be for some specific urls.
sjaved
Techie
 
Posts: 15
Joined: Wed Jun 15, 2016 3:47 am

Re: CefResourceHandler CanSetCookie Method

Postby magreenblatt » Fri Aug 12, 2016 10:23 am

CefResourceHandler is used with custom resource requests. If you want to block cookies for normal network requests then it should be exposed via CefRequestHandler.
magreenblatt
Site Admin
 
Posts: 10749
Joined: Fri May 29, 2009 6:57 pm

Re: CefResourceHandler CanSetCookie Method

Postby sjaved » Fri Aug 12, 2016 11:42 am

ok I understand, so i will continue the work of Kevin then.
I will write you back, as soon as i am done with that patch.

Thanks alot
Best Regards,
sjaved
Techie
 
Posts: 15
Joined: Wed Jun 15, 2016 3:47 am


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 3 guests