Bugzilla – Attachment 150148 Details for
Bug 33597
Get rid of few SameSite warnings
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33597: Get rid of warning about intranet_bib_list
Bug-33597-Get-rid-of-warning-about-intranetbiblist.patch (text/plain), 1.84 KB, created by
Marcel de Rooy
on 2023-04-24 10:41:39 UTC
(
hide
)
Description:
Bug 33597: Get rid of warning about intranet_bib_list
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2023-04-24 10:41:39 UTC
Size:
1.84 KB
patch
obsolete
>From d7cd8256de524fe4618a1dfef1265a95c86c9533 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Mon, 24 Apr 2023 10:23:19 +0000 >Subject: [PATCH] Bug 33597: Get rid of warning about intranet_bib_list >MIME-Version: 1.0 >Content-Type: text/plain; charset=utf-8 >Content-Transfer-Encoding: 8bit >Content-Type: text/plain; charset=utf-8 > >Resolve: >Cookie âintranet_bib_listâ does not have a proper âSameSiteâ attribute value. Soon, cookies without the âSameSiteâ attribute or with an invalid value will be treated as âLaxâ. This means that the cookie will no longer be sent in third-party contexts. If your application depends on this cookie being available in such contexts, please add the âSameSite=Noneâ attribute to it. >basket_22.1200022.js:67:65 > >Test plan: >Do not apply this patch. >Logout from staff. >Check browser console warnings. >Apply this patch. >Login and logout again. >Check warnings again. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > koha-tmpl/intranet-tmpl/prog/js/basket.js | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/basket.js b/koha-tmpl/intranet-tmpl/prog/js/basket.js >index fa03d434ca..f72d58452b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/basket.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/basket.js >@@ -62,9 +62,9 @@ function delCookie(name) { > var exp = new Date(); > exp.setTime(exp.getTime()-1); > if(parent.opener){ >- parent.opener.document.cookie = name + "=null; path=/; expires=" + exp.toGMTString(); >+ parent.opener.document.cookie = name + "=null; SameSite=Lax; path=/; expires=" + exp.toGMTString(); > } else { >- document.cookie = name + "=null; path=/; expires=" + exp.toGMTString(); >+ document.cookie = name + "=null; SameSite=Lax; path=/; expires=" + exp.toGMTString(); > } > } > >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 33597
:
150148
|
150149
|
150150
|
150151
|
150413
|
150414
|
150415