mirror of
https://github.com/strapi/strapi.git
synced 2025-11-12 00:03:40 +00:00
Merge pull request #11362 from strapi/v4/security-config
[V4] Stricter CSP security config
This commit is contained in:
commit
ab8f0ba2f5
@ -8,7 +8,12 @@ const defaults = {
|
|||||||
crossOriginOpenerPolicy: false,
|
crossOriginOpenerPolicy: false,
|
||||||
crossOriginResourcePolicy: false,
|
crossOriginResourcePolicy: false,
|
||||||
originAgentCluster: false,
|
originAgentCluster: false,
|
||||||
contentSecurityPolicy: false,
|
contentSecurityPolicy: {
|
||||||
|
useDefaults: true,
|
||||||
|
directives: {
|
||||||
|
'connect-src': ["'self'", 'https:'],
|
||||||
|
},
|
||||||
|
},
|
||||||
xssFilter: false,
|
xssFilter: false,
|
||||||
hsts: {
|
hsts: {
|
||||||
maxAge: 31536000,
|
maxAge: 31536000,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user