network-pulse/js/security-headers.js

42 строки
731 B
JavaScript
Исходник Обычный вид История

2017-02-15 01:32:22 +03:00
import env from "../config/env.generated.json";
export default {
directives: {
defaultSrc: [
`'none'`
],
scriptSrc: [
`'self'`,
`'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:`,
`https:`,
`http:`
2017-02-15 01:32:22 +03:00
],
connectSrc: [
`'self'`,
env.PULSE_API || `https://network-pulse-api-staging.herokuapp.com/`
],
childSrc: [
`'none'`
],
frameAncestors: [
`'none'`
2017-02-15 01:32:22 +03:00
]
},
reportOnly: false,
browserSniff: false
};