How to set remembering cookies in WebKitGTK (C++)?

48 views Asked by At

I created WebKitGTK wrapper, and works fine, but don't remberer cookies. This is main.cpp file (I use webview/webview (on Github):

#include "webview.h"
#ifdef WIN32
int WINAPI WinMain(HINSTANCE hInt, HINSTANCE hPrevInst, LPSTR lpCmdLine,
                   int nCmdShow) {
#else
int main() {
#endif
  webview::webview w(true, nullptr);
  w.set_title("WebKitGTK");
  w.set_size(3840, 2160, WEBVIEW_HINT_NONE);
  w.navigate("https://google.com");
  w.run();
  return 0;
}

Do you know how to set WebKitGTK to remember cookies?

0

There are 0 answers