]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/directions.js
Mark javascript issued cookies with SameSite=Lax
[rails.git] / app / assets / javascripts / index / directions.js
index 93024d0a90c4e71223cef1eb0aba7a6c17c2491c..18466864b19c80e44f6db06005c132b001fa799e 100644 (file)
@@ -334,7 +334,7 @@ OSM.Directions = function (map) {
 
   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);
   });