This commit is contained in:
thosakwe 2017-02-28 17:23:15 -05:00
parent e489525887
commit 4a8754478e
3 changed files with 2 additions and 50 deletions

View file

@ -1,5 +1,5 @@
# security # security
[![version 1.0.0](https://img.shields.io/badge/pub-v1.0.0-red.svg)](https://pub.dartlang.org/packages/angel_security) [![version 1.0.0-alpha](https://img.shields.io/badge/pub-v1.0.0--alpha-red.svg)](https://pub.dartlang.org/packages/angel_security)
[![build status](https://travis-ci.org/angel-dart/security.svg)](https://travis-ci.org/angel-dart/security) [![build status](https://travis-ci.org/angel-dart/security.svg)](https://travis-ci.org/angel-dart/security)
Angel middleware designed to enhance application security by patching common Web security Angel middleware designed to enhance application security by patching common Web security

View file

@ -1,48 +0,0 @@
library angel_security.helmet;
import 'package:angel_framework/angel_framework.dart';
/// A collection of 11 middleware and handlers to help secure your application
/// using HTTP headers.
AngelConfigurer helmet() {
throw new Exception("Helmet isn't ready just yet! ;)");
return (Angel app) async {
app.before.add(waterfall([
contentSecurityPolicy(),
dnsPrefetchControl(),
frameguard(),
hpkp(),
hsts(),
ieNoOpen(),
noCache(),
noSniff(),
referrerPolicy(),
xssFilter()
]));
app.responseFinalizers.addAll([hidePoweredBy]);
};
}
RequestMiddleware contentSecurityPolicy() {}
RequestMiddleware dnsPrefetchControl() {}
RequestMiddleware frameguard() {}
RequestMiddleware hidePoweredBy() {}
RequestMiddleware hpkp() {}
RequestMiddleware hsts() {}
RequestMiddleware ieNoOpen() {}
RequestMiddleware noCache() {}
RequestMiddleware noSniff() {}
RequestMiddleware referrerPolicy() {}
RequestMiddleware xssFilter() {}

View file

@ -1,5 +1,5 @@
name: angel_security name: angel_security
version: 1.0.0 version: 1.0.0-alpha
description: Angel middleware designed to enhance application security by patching common Web security holes. description: Angel middleware designed to enhance application security by patching common Web security holes.
author: Tobe O <thosakwe@gmail.com> author: Tobe O <thosakwe@gmail.com>
environment: environment: