Test fixing cookie
All checks were successful
Build release Docker image / Build Docker Images (push) Successful in 3m29s
All checks were successful
Build release Docker image / Build Docker Images (push) Successful in 3m29s
This commit is contained in:
@@ -42,7 +42,16 @@ export default [
|
|||||||
"strapi::poweredBy",
|
"strapi::poweredBy",
|
||||||
"strapi::query",
|
"strapi::query",
|
||||||
"strapi::body",
|
"strapi::body",
|
||||||
"strapi::session",
|
{
|
||||||
|
name: 'strapi::session',
|
||||||
|
config: {
|
||||||
|
cookie: {
|
||||||
|
secure: true, // Force car tu es sur https://back.harmonylab.ovh
|
||||||
|
sameSite: 'lax',
|
||||||
|
httpOnly: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
"strapi::favicon",
|
"strapi::favicon",
|
||||||
"strapi::public",
|
"strapi::public",
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -12,4 +12,13 @@ export default ({ env }) => ({
|
|||||||
enabled: true,
|
enabled: true,
|
||||||
tasks: cronTasks,
|
tasks: cronTasks,
|
||||||
},
|
},
|
||||||
|
admin: {
|
||||||
|
auth: {
|
||||||
|
events: {
|
||||||
|
onConnectionSuccess(e) {
|
||||||
|
console.log('Login success for:', e.user.email);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user