by ssaraf » Wed Feb 01, 2023 1:36 am
I am setting the cookie but it doesnt work:
const std::string url = request->GetURL();
CefRefPtr<CefCookieManager> manager = CefCookieManager::GetGlobalManager(NULL);
CefCookie cookie;
CefString(&cookie.name).FromASCII("my_cookie");
CefString(&cookie.value).FromASCII("My Value");
CefString(&cookie.domain).FromASCII(url.c_str());
CefString(&cookie.path).FromASCII("/");
cookie.has_expires = true;
cookie.expires.year = 220;
cookie.expires.month = 4;
cookie.expires.day_of_week = 5;
cookie.expires.day_of_month = 11;
manager->SetCookie(url, cookie, NULL);
-> the websocket has wss scheme.