2017-07-12 01:24:10 +03:00
|
|
|
import url from 'url';
|
2017-02-15 01:32:22 +03:00
|
|
|
import env from "../config/env.generated.json";
|
|
|
|
|
|
|
|
export default {
|
|
|
|
directives: {
|
|
|
|
defaultSrc: [
|
|
|
|
`'none'`
|
|
|
|
],
|
|
|
|
scriptSrc: [
|
|
|
|
`'self'`,
|
2017-05-16 22:41:29 +03:00
|
|
|
`https://*.google-analytics.com`,
|
|
|
|
`https://platform.twitter.com/widgets.js`
|
2017-02-15 01:32:22 +03:00
|
|
|
],
|
|
|
|
fontSrc: [
|
|
|
|
`'self'`,
|
|
|
|
`https://code.cdn.mozilla.net`
|
|
|
|
],
|
|
|
|
styleSrc: [
|
|
|
|
`'self'`,
|
|
|
|
`'unsafe-inline'`,
|
|
|
|
`https://code.cdn.mozilla.net`
|
|
|
|
],
|
|
|
|
imgSrc: [
|
|
|
|
`'self'`,
|
|
|
|
`data:`,
|
2017-02-24 10:35:44 +03:00
|
|
|
`https:`,
|
|
|
|
`http:`
|
2017-02-15 01:32:22 +03:00
|
|
|
],
|
|
|
|
connectSrc: [
|
|
|
|
`'self'`,
|
2017-07-12 01:24:10 +03:00
|
|
|
url.parse(env.PULSE_API).host || `https://network-pulse-api-staging.herokuapp.com/`
|
2017-03-07 18:44:53 +03:00
|
|
|
],
|
|
|
|
childSrc: [
|
|
|
|
`'none'`
|
|
|
|
],
|
|
|
|
frameAncestors: [
|
|
|
|
`'none'`
|
2017-04-06 19:25:54 +03:00
|
|
|
],
|
|
|
|
manifestSrc: [
|
|
|
|
`'self'`
|
2017-02-15 01:32:22 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
reportOnly: false,
|
|
|
|
browserSniff: false
|
|
|
|
};
|