用于web应用程序安全的wsgi中间件

guard的Python项目详细描述


https://travis-ci.org/dstufft/guard.png?branch=masterhttps://coveralls.io/repos/dstufft/guard/badge.png?branch=master

guard是通用wsgi中间件和用于改进的实用程序的集合。 web应用程序的安全性

内容安全策略

guard.ContentSecurityPolicy提供了一个可以使用的wsgi中间件 为web应用程序提供内容安全策略

使用量

importguard,wsgi_app# Default Policyapp=guard.ContentSecurityPolicy(wsgi_app.application)# Custom Directivesapp=guard.ContentSecurityPolicy(wsgi_app.application,{"img-src":["*"]})# Report Onlyapp=guard.ContentSecurityPolicy(wsgi_app.application,report_only=True)

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java Spring MVC 4.0 RequestMapping无值,基于methodname   java Samsung 10 plus不允许wifi p2p发现   春爪哇。伊奥。IOException:找不到文件   java JasperReport饼图示例   java我试图使用mockito注释来测试我的代码,但无法解决mockito异常   命令行界面Java:制作简单的交互式cli应用程序   java jdk1之间的区别是什么。7_9 9和jdk1。7_271   java重载一个被重写的、继承的方法   java LazyInitializationException春季启动   java Play Framework 2.2.1 3个表之间存在大量关系