diff --git a/koha-tmpl/intranet-tmpl/prog/js/pages/results.js b/koha-tmpl/intranet-tmpl/prog/js/pages/results.js index 2e381c2260..8ce456e3fd 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/pages/results.js +++ b/koha-tmpl/intranet-tmpl/prog/js/pages/results.js @@ -356,8 +356,8 @@ function placeHold () { } function forgetPatronAndClub(){ - Cookies.remove("holdfor", { path: '/' }); - Cookies.remove("holdforclub", { path: '/' }); + Cookies.remove("holdfor", { path: '/', SameSite: 'Lax' }); + Cookies.remove("holdforclub", { path: '/', SameSite: 'Lax' }); $(".holdforlink").remove(); $("#placeholdc").html(" " + __("Place hold") + ""); } diff --git a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js index 3b60c4b938..c4890ae20e 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js +++ b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js @@ -237,7 +237,7 @@ function checkEnter(e){ //e is event object passed from function invocation } function clearHoldFor(){ - Cookies.remove("holdfor", { path: '/' }); + Cookies.remove("holdfor", { path: '/', SameSite: 'Lax' }); } function logOut(){