Service-worker request/response interception in C++

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.

Service-worker request/response interception in C++

Postby nullptr » Mon Jul 19, 2021 7:13 pm

Hi everybody,
I need to intercept requests and responses from a service-worker, I tried to do this using CefRequestHandler with no success.

Outside the service-worker I can intercept all requests/responses, everything works fine, but from service-worker CefRequestHandler and GetResourceRequestHandler never get called.
I'm using visual studio 2019 and cef_binary_92.0.14+gadd734a+chromium-92.0.4515.81_windows64_beta.

I saw this post:
viewtopic.php?f=6&t=16725

Is this still not possible to do?

Thank You
nullptr
Newbie
 
Posts: 2
Joined: Mon Jul 19, 2021 7:09 pm

Re: Service-worker request/response interception in C++

Postby magreenblatt » Mon Jul 19, 2021 7:36 pm

Use CefRequestContextHandler::GetResourceRequestHandler
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Service-worker request/response interception in C++

Postby nullptr » Tue Jul 20, 2021 5:21 pm

Thank you Marshall for helping me, now I tried again using CefRequestContextHandler and everything worked great.

And thank you so much for your amazing job on CEF and for helping so many people here. CEF is awesome! :)
nullptr
Newbie
 
Posts: 2
Joined: Mon Jul 19, 2021 7:09 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 29 guests