Page 1 of 1

CefResourceHandler CanSetCookie Method

PostPosted: Tue Aug 09, 2016 7:28 am
by sjaved
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,

Re: CefResourceHandler CanSetCookie Method

PostPosted: Fri Aug 12, 2016 8:19 am
by magreenblatt
What do you mean by "disable cookies"? What behavior are you seeking?

Re: CefResourceHandler CanSetCookie Method

PostPosted: Fri Aug 12, 2016 9:23 am
by sjaved
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,

Re: CefResourceHandler CanSetCookie Method

PostPosted: Fri Aug 12, 2016 9:33 am
by magreenblatt
So you want to block specific origins from accessing specific cookies on a case-by-case basis? Why? What is your particular use case?

Re: CefResourceHandler CanSetCookie Method

PostPosted: Fri Aug 12, 2016 9:42 am
by sjaved
we want either to block setting the cookies for the whole application or sometimes it can be for some specific urls.

Re: CefResourceHandler CanSetCookie Method

PostPosted: Fri Aug 12, 2016 10:23 am
by magreenblatt
CefResourceHandler is used with custom resource requests. If you want to block cookies for normal network requests then it should be exposed via CefRequestHandler.

Re: CefResourceHandler CanSetCookie Method

PostPosted: Fri Aug 12, 2016 11:42 am
by sjaved
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,