chore: 🤖 disable csp meta for prod (#1560)
This commit is contained in:
1 parent
1bd057bb4c
commit
f41631c745
1 file changed
+2
-1
@@ -25,9 +25,10 @@ module.exports = function (environment) {
|
|||||||
if (API_HOST) policy['connect-src'].push(API_HOST);
|
if (API_HOST) policy['connect-src'].push(API_HOST);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//enable csp meta tag only in dev env
|
||||||
return {
|
return {
|
||||||
delivery: ['meta'],
|
delivery: ['meta'],
|
||||||
enabled: environment !== 'test',
|
enabled: environment === 'development',
|
||||||
policy,
|
policy,
|
||||||
reportOnly: false,
|
reportOnly: false,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user