map.getLayersCode(),
map._object);
- Cookies.remove("_osm_location");
- Cookies.set("_osm_location", OSM.locationCookie(map), { secure: true, expires: expiry, path: "/" });
+ Cookies.set("_osm_location", OSM.locationCookie(map), { secure: true, expires: expiry, path: "/", samesite: "lax" });
});
if (Cookies.get("_osm_welcome") !== "hide") {
$(".welcome .close").on("click", function () {
$(".welcome").removeClass("visible");
- Cookies.set("_osm_welcome", "hide", { secure: true, expires: expiry, path: "/" });
+ Cookies.set("_osm_welcome", "hide", { secure: true, expires: expiry, path: "/", samesite: "lax" });
});
var bannerExpiry = new Date();
$("#banner").hide();
e.preventDefault();
if (cookieId) {
- Cookies.set(cookieId, "hide", { secure: true, expires: bannerExpiry, path: "/" });
+ Cookies.set(cookieId, "hide", { secure: true, expires: bannerExpiry, path: "/", samesite: "lax" });
}
});
select.on("change", function (e) {
chosenEngine = engines[e.target.selectedIndex];
- Cookies.set("_osm_directions_engine", chosenEngine.id, { secure: true, expires: expiry, path: "/" });
+ Cookies.set("_osm_directions_engine", chosenEngine.id, { secure: true, expires: expiry, path: "/", samesite: "lax" });
getRoute(true, true);
});