change: content-security-policy
This commit is contained in:
parent
51e680ced8
commit
39492403ad
1 changed files with 24 additions and 11 deletions
|
@ -1,13 +1,26 @@
|
|||
export default [
|
||||
'strapi::logger',
|
||||
'strapi::errors',
|
||||
'strapi::security',
|
||||
'strapi::cors',
|
||||
'strapi::poweredBy',
|
||||
'strapi::query',
|
||||
'strapi::body',
|
||||
'strapi::session',
|
||||
'strapi::favicon',
|
||||
'strapi::public',
|
||||
'global::deepPopulate'
|
||||
"strapi::logger",
|
||||
"strapi::errors",
|
||||
// "strapi::security",
|
||||
{
|
||||
name: "strapi::security",
|
||||
config: {
|
||||
contentSecurityPolicy: {
|
||||
useDefaults: true,
|
||||
directives: {
|
||||
"script-src": ["'self'", "https:", "http:"],
|
||||
"frame-src": ["'self'", "https:", "http:"],
|
||||
"frame-ancestors": ["'self'", "https:", "http:"],
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
"strapi::cors",
|
||||
"strapi::poweredBy",
|
||||
"strapi::query",
|
||||
"strapi::body",
|
||||
"strapi::session",
|
||||
"strapi::favicon",
|
||||
"strapi::public",
|
||||
"global::deepPopulate",
|
||||
];
|
||||
|
|
Loading…
Add table
Reference in a new issue