2017-02-15 01:32:22 +03:00
|
|
|
import env from "../config/env.generated.json";
|
|
|
|
|
|
|
|
export default {
|
|
|
|
directives: {
|
|
|
|
defaultSrc: [
|
|
|
|
`'none'`
|
|
|
|
],
|
|
|
|
scriptSrc: [
|
|
|
|
`'self'`,
|
2017-02-24 10:35:44 +03:00
|
|
|
`'unsafe-inline'`,
|
|
|
|
`https://*.google-analytics.com`
|
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'`,
|
|
|
|
env.PULSE_API || `https://network-pulse-api-staging.herokuapp.com/`
|
2017-03-07 18:44:53 +03:00
|
|
|
],
|
|
|
|
childSrc: [
|
|
|
|
`'none'`
|
|
|
|
],
|
|
|
|
frameAncestors: [
|
|
|
|
`'none'`
|
2017-02-15 01:32:22 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
reportOnly: false,
|
|
|
|
browserSniff: false
|
|
|
|
};
|