27bb03bbc0
* adding copyright header * fix fmt and a test
24 lines
561 B
JavaScript
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,
|
|
};
|
|
};
|