Page 1 of 1

Custom header

Posted: Thu Mar 19, 2020 6:27 am
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,

Re: Custom header

Posted: Thu Mar 19, 2020 9:21 am
by salvadordf
Hi,

Try setting those properties before the TChromium.LoadURL call.

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