Skip to content

Commit

Permalink
Adds SameSite=None cookie option
Browse files Browse the repository at this point in the history
  • Loading branch information
denizzzka committed Oct 22, 2024
1 parent 568224d commit adb3968
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/vibe/http/common.d
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,7 @@ final class Cookie {
default_,
lax,
strict,
none,
}

/// Cookie payload
Expand Down Expand Up @@ -845,6 +846,7 @@ final class Cookie {
case default_: break;
case lax: dst.put("; SameSite=Lax"); break;
case strict: dst.put("; SameSite=Strict"); break;
case none: dst.put("; SameSite=None"); break;
}
}

Expand Down

0 comments on commit adb3968

Please sign in to comment.