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,
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
- salvadordf
- Posts: 4564
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Custom header
Hi,
Try setting those properties before the TChromium.LoadURL call.
It should add the HTTP header in the TChromium.OnBeforeResourceLoad event automatically.
Try setting those properties before the TChromium.LoadURL call.
It should add the HTTP header in the TChromium.OnBeforeResourceLoad event automatically.