v0.13.2 : fix admin
This commit is contained in:
@@ -1,57 +1,23 @@
|
||||
export default [
|
||||
"strapi::logger",
|
||||
"strapi::errors",
|
||||
//'strapi::security',
|
||||
{
|
||||
name: "strapi::security",
|
||||
config: {
|
||||
contentSecurityPolicy: {
|
||||
useDefaults: true,
|
||||
directives: {
|
||||
"connect-src": ["'self'", "https:", "http:"],
|
||||
"img-src": [
|
||||
"'self'",
|
||||
"data:",
|
||||
"blob:",
|
||||
"market-assets.strapi.io",
|
||||
"192.168.0.211:9000",
|
||||
"container.harmonylab.ovh",
|
||||
],
|
||||
"media-src": [
|
||||
"'self'",
|
||||
"data:",
|
||||
"blob:",
|
||||
"market-assets.strapi.io",
|
||||
"192.168.0.211:9000",
|
||||
"container.harmonylab.ovh",
|
||||
],
|
||||
upgradeInsecureRequests: null,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "strapi::cors",
|
||||
config: {
|
||||
origin: ["https://back.harmonylab.ovh", "https://www.choralsync.com"],
|
||||
methods: ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"],
|
||||
headers: ["Content-Type", "Authorization", "Origin", "Accept"],
|
||||
keepHeadersOnError: true,
|
||||
},
|
||||
},
|
||||
"strapi::security",
|
||||
"strapi::cors",
|
||||
"strapi::poweredBy",
|
||||
"strapi::query",
|
||||
"strapi::body",
|
||||
{
|
||||
name: 'strapi::session',
|
||||
config: {
|
||||
cookie: {
|
||||
secure: true, // Force car tu es sur https://back.harmonylab.ovh
|
||||
sameSite: 'lax',
|
||||
name: "strapi::session",
|
||||
config: {
|
||||
// Nom unique pour être sûr que le navigateur ne garde pas un vieux cookie
|
||||
key: "strapi_session_local_debug",
|
||||
maxAge: 86400000,
|
||||
httpOnly: true,
|
||||
// FORCE à false pour que ça marche en HTTP local
|
||||
secure: false,
|
||||
sameSite: "lax",
|
||||
},
|
||||
},
|
||||
},
|
||||
"strapi::favicon",
|
||||
"strapi::public",
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user