mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:27:35 +00:00
LibWeb: Parse SameSite cookie attribute
This commit is contained in:
parent
a534e61b44
commit
b08ae57b23
4 changed files with 55 additions and 0 deletions
|
@ -12,6 +12,13 @@
|
|||
|
||||
namespace Web::Cookie {
|
||||
|
||||
enum class SameSite {
|
||||
Default,
|
||||
None,
|
||||
Strict,
|
||||
Lax
|
||||
};
|
||||
|
||||
enum class Source {
|
||||
NonHttp,
|
||||
Http,
|
||||
|
@ -20,6 +27,7 @@ enum class Source {
|
|||
struct Cookie {
|
||||
String name;
|
||||
String value;
|
||||
SameSite same_site;
|
||||
Core::DateTime creation_time {};
|
||||
Core::DateTime last_access_time {};
|
||||
Core::DateTime expiry_time {};
|
||||
|
@ -31,6 +39,8 @@ struct Cookie {
|
|||
bool persistent { false };
|
||||
};
|
||||
|
||||
StringView same_site_to_string(SameSite same_site_mode);
|
||||
|
||||
}
|
||||
|
||||
namespace IPC {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue