---
title: Set a Content Security Policy with helmet.contentSecurityPolicy()
localeTitle: 使用helmet.contentSecurityPolicy（）设置内容安全策略
---
## 使用helmet.contentSecurityPolicy（）设置内容安全策略

这是一个存根。 [帮助我们的社区扩展它](https://github.com/freecodecamp/guides/tree/master/src/pages/certifications/information-security-and-quality-assurance/information-security-with-helmetjs/set-a-content-security-policy-with-helmet.contentsecuritypolicy/index.md) 。

[这种快速风格指南有助于确保您的拉取请求被接受](https://github.com/freecodecamp/guides/blob/master/README.md) 。