http://127.0.0.1:5000/cookie2
These two url requests return a cookie, which the front page displays.
I only want to control the COOKIE for the first URL, but the COOKIE for the second URL is also invalid。
Why is that? Am I using it wrong
Code: Select all
procedure TForm1.Chromium1RequestContextInitialized(Sender: TObject;
const request_context: ICefRequestContext);
begin
request_context.SetContentSetting(
'http://127.0.0.1:5000/cookie1',
'http://127.0.0.1:5000/cookie1',
CEF_CONTENT_SETTING_TYPE_COOKIES,
CEF_CONTENT_SETTING_VALUE_BLOCK
);
end;