open-vault/ui/config/content-security-policy.js
Hamid Ghaf 27bb03bbc0
adding copyright header (#19555)
* adding copyright header

* fix fmt and a test
2023-03-15 09:00:52 -07:00

24 lines
561 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
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,
};
};