open-vault/ui/config/content-security-policy.js

19 lines
483 B
JavaScript

module.exports = function (environment) {
return {
delivery: ['header', 'meta'],
enabled: environment !== 'production',
failTests: true,
policy: {
'default-src': ["'none'"],
'script-src': ["'self'"],
'font-src': ["'self'"],
'connect-src': ["'self'"],
'img-src': ["'self'", 'data:'],
'style-src': ["'unsafe-inline'", "'self'"],
'media-src': ["'self'"],
'form-action': ["'none'"],
},
reportOnly: false,
};
};