diff --git a/routes/user_settings.cpp b/routes/user_settings.cpp index f57866b..1c28438 100644 --- a/routes/user_settings.cpp +++ b/routes/user_settings.cpp @@ -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";