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.

Unable to set referer

andreykrasnodar
Posts: 112
Joined: Wed Jul 01, 2020 10:22 am

Re: Unable to set referer

Post by andreykrasnodar »

Student wrote: Mon Aug 24, 2020 12:12 pm uCEFRequest
Подключил - работает, есть там TCefRequestRef
But this code does not send referer

Code: Select all

  
Request := TCefRequestRef.New;
Request.Url:='https://google.com';
request.Method:='GET';
request.SetReferrer('https://mail.ru',REFERRER_POLICY_ALWAYS);
request.Flags:=UR_FLAG_ALLOW_CACHED_CREDENTIALS;
chromium2.Browser.MainFrame.LoadRequest(Request);
Post Reply