Here is my code. This method is connected with TChromium "OnCanSaveCookie"
Code: Select all
procedure TBrowserFrame.CHROMECanSaveCookie(Sender: TObject; const browser: ICefBrowser; const frame: ICefFrame; const request: ICefRequest; const response: ICefResponse; const cookie: PCefCookie; var aResult: Boolean);
begin
//
aResult:=TRUE;
end;
I have one site with login page: https://serwis.axadirect.pl/partner/Login.html
When I sign in with correct credentials the site cant progress as it "reloads" login form endlessly.
Once I remove this event - everything is working fine.
I think that it has something to do with the cookies.
I investigated cookies (it was not easy as the page reloads quicly and cookies change dynamically).
I found out theat this page registers two cookies with the same name. Which is strange. See attaced image. The "_ga" cookie is set twice with different data.
I don't know if it this done "by the book" but maybe this causes the error when the event is set.