Skip to content

Commit

Permalink
Fix warnings on used cookies
Browse files Browse the repository at this point in the history
(reference #54)
  • Loading branch information
piotrzarzycki21 committed May 9, 2024
1 parent f75fc6f commit efdfe5b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ package controller
var nomadWarningLink:Boolean = Boolean(window["Cookies"].get("SuperHumanPortalNomadHelperUrlLinkWarning"));
if (!loginProxy.isNomadHelperUrlExists() && nomadWarningLink == false)
{
window["Cookies"].set("SuperHumanPortalNomadHelperUrlLinkWarning", true);
window["Cookies"].set("SuperHumanPortalNomadHelperUrlLinkWarning", true, { sameSite: 'strict' });
Snackbar.show("This link is currently configured to open in a separate HCL Nomad Web window. For the best user experience, please ensure that your administrator has configured the server to open *.nsf database links in non separate HCL Nomad Web windows.",
0, "Close");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ package controller
var showBrowserWarning:Boolean = Boolean(window["Cookies"].get("SuperHumanPortalBrowserWarning"));
if (!showBrowserWarning)
{
window["Cookies"].set("SuperHumanPortalBrowserWarning", true);
window["Cookies"].set("SuperHumanPortalBrowserWarning", true, { sameSite: 'strict' });

var uaParser:Object = new window["UAParser"]();
var browser:Object = uaParser.getBrowser();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ package model.proxy
{
if (Theme[t] == theme)
{
window["Cookies"].set("SuperHumanPortalTheme", theme);
window["Cookies"].set("SuperHumanPortalThemeId", themeId);
window["Cookies"].set("SuperHumanPortalTheme", theme, { sameSite: 'strict' });
window["Cookies"].set("SuperHumanPortalThemeId", themeId, { sameSite: 'strict' });

this.setData({theme: theme, themeId: themeId});
break;
Expand Down

0 comments on commit efdfe5b

Please sign in to comment.