Skip to content

Commit

Permalink
not removing other functions :)
Browse files Browse the repository at this point in the history
  • Loading branch information
vriken committed Dec 12, 2024
1 parent a8fbe50 commit 0d9620f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion template.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ ___TEMPLATE_PARAMETERS___
"help": "If enabled, the _dcid cookie will be written with the HttpOnly flag, making it non-accsessible by javascript.",
"defaultValue": false
},
{
"type": "CHECKBOX",
"name": "httpOnlyCookie",
"checkboxText": "Write the _dcid cookie as HttpOnly",
"simpleValueType": true,
"help": "If enabled, the _dcid cookie will be written with the HttpOnly flag, making it non-accsessible by javascript.",
"defaultValue": false
},
{
"type": "CHECKBOX",
"name": "generateClientId",
Expand Down Expand Up @@ -671,7 +679,7 @@ function storeClientId(eventModel) {
samesite: getCookieType(eventModel),
secure: true,
'max-age': 63072000, // 2 years
httpOnly: data.httpOnlyCookie,
httpOnly: false,
});
}
}
Expand Down

0 comments on commit 0d9620f

Please sign in to comment.