setCookie

fun setCookie(url: String, name: String, value: String)

Sets a session cookie for url (domain/path inferred from the URL).


fun setCookie(url: String, name: String, value: String, secure: Boolean, httpOnly: Boolean = false, sameSite: Int = com.cefrium.CefriumBrowser.SAME_SITE_UNSPECIFIED)

Sets a session cookie for url with explicit attributes. For a cookie a cross-site/embedded iframe must send (e.g. a consent cookie), pass secure = true and sameSite = com.cefrium.CefriumBrowser.SAME_SITE_NONE (Chromium rejects SameSite=None without Secure).