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', }) ); ```
14
100
3
+ 5 other calls in file
GitHub: Cloud-CNC/core
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')
1
6
2
helmet.contentSecurityPolicy is the most popular function in helmet (195 examples)