User preferences configuration options
{
userPreferences: {
cookieName: 'example-service-cookie-preferences',
cookieExpiry: 180,
cookieSecure: true
},
}
Options
Within the cookie-manager config `userPreferences’ subsection, the following options can be used:
cookieName
string, defaults to cookie-preferences
Specifies the name of cookie which will store the user’s preferences, optional to set but highly recommended.
cookieExpiry
number, defaults to 365
Specifies the expiry time (in days) of the preferences cookie.
cookieSecure
boolean, defaults to false
Adds ;secure to the preferences cookie, ensuring it is only sent on encrypted (HTTPS) connections.
Warning
Ensure that this is set to
false in development environments that are not using HTTPS.