Skip to content

Commit d819560

Browse files
committed
Update README with secure middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
1 parent 6424d77 commit d819560

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ Middleware | Description
240240
[Gzip](https://labstack.com/echo/guide/middleware#gzip-middleware:37ab2f15ff048f67959bcac0a6032f32) | Send gzip HTTP response
241241
[BasicAuth](https://labstack.com/echo/guide/middleware#basicauth-middleware:37ab2f15ff048f67959bcac0a6032f32) | HTTP basic authentication
242242
[JWTAuth](https://labstack.com/echo/guide/middleware#jwtauth-middleware:37ab2f15ff048f67959bcac0a6032f32) | JWT authentication
243+
[Secure](https://labstack.com/echo/guide/middleware#secure-middleware:37ab2f15ff048f67959bcac0a6032f32) | Protection against attacks
243244
[CORS](https://labstack.com/echo/guide/middleware#cors-middleware:37ab2f15ff048f67959bcac0a6032f32) | Cross-Origin Resource Sharing
244245
[Static](https://labstack.com/echo/guide/static-files#using-static-middleware:123f9d1043075fe4874616541b409e4d) | Serve static files
245246
[AddTrailingSlash](https://labstack.com/echo/guide/middleware#addtrailingslash-middleware:37ab2f15ff048f67959bcac0a6032f32) | Add trailing slash to the request URI

middleware/secure.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ var (
6363
)
6464

6565
// Secure returns a secure middleware.
66-
// Secure middleware provide protection against cross-site scripting (XSS) attack,
67-
// content type sniffing, clickjacking, insecure connection and other code
68-
// injection attacks.
66+
// Secure middleware provides protection against cross-site scripting (XSS) attack,
67+
// content type sniffing, clickjacking, insecure connection and other code injection
68+
// attacks.
6969
func Secure() echo.MiddlewareFunc {
7070
return SecureWithConfig(DefaultSecureConfig)
7171
}

0 commit comments

Comments
 (0)