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.

No refferer when open link in popup window

dilfich
Posts: 330
Joined: Thu Nov 30, 2017 1:17 am

Re: No refferer when open link in popup window

Post by dilfich »

Why make up your own something, look at the beginning as a normal browser does.
igor666
Posts: 64
Joined: Fri Feb 08, 2019 1:25 pm

Re: No refferer when open link in popup window

Post by igor666 »

Made the following images, in the onResourceLoadComplete event set the condition
if request.ResourceType = RT_MAIN_FRAME then
begin
frame.ExecuteJavaScript(SCRIPT_TARGET_REPLACE,request.Url,0);
end;
where SCRIPT_TARGET_REPLACE is a script that replaces the target property with _blank by _self in tags A. It works as it should :). Thanks to everyone who responded.
andreykrasnodar
Posts: 112
Joined: Wed Jul 01, 2020 10:22 am

Re: No refferer when open link in popup window

Post by andreykrasnodar »

igor666 wrote: Tue Jul 07, 2020 2:27 pm I gave Yandex as an example, but the options may be different. Thus, we decided a specific example, and not the situation as a whole. Indeed, in one case, the referrer transfer can be with the flag REFERRER_POLICY_ORIGIN, in another REFERRER_POLICY_NEVER_CLEAR_REFERRER, etc. And there is no request in the onBeforePopup event to check which flag should be for the current request.
There is no SetReferer in my version of CEF
Post Reply