How to use the permittedCrossDomainPolicies function from helmet

Find comprehensive JavaScript helmet.permittedCrossDomainPolicies code examples handpicked from public code repositorys.

124
125
126
127
128
129
130
131
132
133
`permittedCrossDomainPolicies` - задает заголовок `X-Permitted-Cross-Domain-Policies` для предотвращения загрузки на сайте контента Adobe Flash и Adobe Acrobat;

```js
app.use(helmet.permittedCrossDomainPolicies()); //по умолчанию none
app.use(
    helmet.permittedCrossDomainPolicies({
        permittedPolicies: 'all',
    })
);
```
fork icon14
star icon100
watch icon3

+ 5 other calls in file

31
32
33
34
35
36
37
38
39
40
    fontSrc: ['\'self\'', 'data:'],
    scriptSrc: ['\'self\'', '\'unsafe-inline\'', 'storage.googleapis.com']
  }
}),

helmet.permittedCrossDomainPolicies(),

helmet.expectCt({
  enforce: true,
  maxAge: config.get('core.cryptography.ct')
fork icon1
star icon6
watch icon2