Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Change body

Post Reply
alpires2000
Posts: 52
Joined: Sat Dec 09, 2017 4:40 pm

Change body

Post by alpires2000 »

Hi, existe some way to change de body in BeforeResourceLoad event?
Thanks
User avatar
salvadordf
Posts: 4580
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Change body

Post by salvadordf »

Hi,

You can't change the body in that event.

Use the code in the ResponseFilterBrowser demo to do that.
alpires2000
Posts: 52
Joined: Sat Dec 09, 2017 4:40 pm

Re: Change body

Post by alpires2000 »

Salvador, I need to do a "interception", take the requested html and replace it with another one. Is there any event I can do this?
Thanks
User avatar
salvadordf
Posts: 4580
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Change body

Post by salvadordf »

Sorry but CEF doesn't allow to change the body in any event as far as I know.
You have to use the code in the ResponseFilterBrowser demo in order to do that.
Post Reply