Relax SameSite
This commit is contained in:
parent
9acae28193
commit
9b6f6a4bcc
|
@ -54,7 +54,7 @@ static void set_cookie(const httplib::Request& req, httplib::Response& res, cons
|
|||
origin.set(CURLUPART_URL, get_origin(req));
|
||||
|
||||
std::string header = std::string(key) + '=' + std::string(value)
|
||||
+ "; HttpOnly; SameSite=Strict; Domain=" + origin.get(CURLUPART_HOST).get() + "; Path=" + origin.get(CURLUPART_PATH).get()
|
||||
+ "; HttpOnly; SameSite=Lax; Domain=" + origin.get(CURLUPART_HOST).get() + "; Path=" + origin.get(CURLUPART_PATH).get()
|
||||
+ "; Expires=" + to_web_date(current_time() + 365 * 24 * 60 * 60);
|
||||
if (strcmp(origin.get(CURLUPART_SCHEME).get(), "https") == 0) {
|
||||
header += "; Secure";
|
||||
|
|
Loading…
Reference in New Issue