mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Add comment for 'sameSite' cookie option
This commit is contained in:
parent
81ffed4758
commit
d0985ca804
@ -201,7 +201,7 @@ export default {
|
|||||||
/** * A Boolean indicating if the cookie transmission requires a
|
/** * A Boolean indicating if the cookie transmission requires a
|
||||||
* secure protocol (https). Defaults to false. */
|
* secure protocol (https). Defaults to false. */
|
||||||
secure: CONFIG.COOKIE_HTTPS_ONLY,
|
secure: CONFIG.COOKIE_HTTPS_ONLY,
|
||||||
sameSite: 'lax',
|
sameSite: 'lax', // for the meaning see https://www.thinktecture.com/de/identity/samesite/samesite-in-a-nutshell/
|
||||||
},
|
},
|
||||||
// includeNodeModules: true, // optional, default: false (this includes graphql-tag for node_modules folder)
|
// includeNodeModules: true, // optional, default: false (this includes graphql-tag for node_modules folder)
|
||||||
|
|
||||||
|
|||||||
@ -37,7 +37,7 @@ export default ({ app, req, cookie, store }) => {
|
|||||||
app.$cookies.set(key, newLocale, {
|
app.$cookies.set(key, newLocale, {
|
||||||
expires,
|
expires,
|
||||||
// maxAge: app.$env.COOKIE_EXPIRE_TIME * 60 * 60 * 24, // days to seconds
|
// maxAge: app.$env.COOKIE_EXPIRE_TIME * 60 * 60 * 24, // days to seconds
|
||||||
sameSite: 'lax',
|
sameSite: 'lax', // for the meaning see https://www.thinktecture.com/de/identity/samesite/samesite-in-a-nutshell/
|
||||||
})
|
})
|
||||||
if (!app.$i18n.localeExists(newLocale)) {
|
if (!app.$i18n.localeExists(newLocale)) {
|
||||||
import(`~/locales/${newLocale}.json`).then((res) => {
|
import(`~/locales/${newLocale}.json`).then((res) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user