From d81956058e90e335ff9410d8fa3acc992e477589 Mon Sep 17 00:00:00 2001 From: Vishal Rana Date: Tue, 3 May 2016 11:42:42 -0700 Subject: [PATCH] Update README with secure middleware Signed-off-by: Vishal Rana --- README.md | 1 + middleware/secure.go | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c4b93c6f..d252c54c 100644 --- a/README.md +++ b/README.md @@ -240,6 +240,7 @@ Middleware | Description [Gzip](https://labstack.com/echo/guide/middleware#gzip-middleware:37ab2f15ff048f67959bcac0a6032f32) | Send gzip HTTP response [BasicAuth](https://labstack.com/echo/guide/middleware#basicauth-middleware:37ab2f15ff048f67959bcac0a6032f32) | HTTP basic authentication [JWTAuth](https://labstack.com/echo/guide/middleware#jwtauth-middleware:37ab2f15ff048f67959bcac0a6032f32) | JWT authentication +[Secure](https://labstack.com/echo/guide/middleware#secure-middleware:37ab2f15ff048f67959bcac0a6032f32) | Protection against attacks [CORS](https://labstack.com/echo/guide/middleware#cors-middleware:37ab2f15ff048f67959bcac0a6032f32) | Cross-Origin Resource Sharing [Static](https://labstack.com/echo/guide/static-files#using-static-middleware:123f9d1043075fe4874616541b409e4d) | Serve static files [AddTrailingSlash](https://labstack.com/echo/guide/middleware#addtrailingslash-middleware:37ab2f15ff048f67959bcac0a6032f32) | Add trailing slash to the request URI diff --git a/middleware/secure.go b/middleware/secure.go index eed75d8e..459a15f7 100644 --- a/middleware/secure.go +++ b/middleware/secure.go @@ -63,9 +63,9 @@ var ( ) // Secure returns a secure middleware. -// Secure middleware provide protection against cross-site scripting (XSS) attack, -// content type sniffing, clickjacking, insecure connection and other code -// injection attacks. +// Secure middleware provides protection against cross-site scripting (XSS) attack, +// content type sniffing, clickjacking, insecure connection and other code injection +// attacks. func Secure() echo.MiddlewareFunc { return SecureWithConfig(DefaultSecureConfig) }