File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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.
6969func Secure () echo.MiddlewareFunc {
7070 return SecureWithConfig (DefaultSecureConfig )
7171}
You can’t perform that action at this time.
0 commit comments