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.

Custom header

Post Reply
jaisjos
Posts: 1
Joined: Thu Mar 19, 2020 6:05 am

Custom header

Post by jaisjos »

hi,

This code used work in OnBeforeBrowse event in the older versions. (CEF Version: 74.1.13+g98f22d3+chromium-74.0.3729.108)

Chromium1.CustomHeaderName := 'id_token';
Chromium1.CustomHeaderValue := Token;

After updating to the new version (80.0.8+gf96cd1d+chromium-80.0.3987.132) with latest cef4 delphi, this no longer works. The api server could not extract the token from headers.

Please help.

Thanks in advance,
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Custom header

Post by salvadordf »

Hi,

Try setting those properties before the TChromium.LoadURL call.

It should add the HTTP header in the TChromium.OnBeforeResourceLoad event automatically.
Post Reply