mirror of
https://github.com/labstack/echo.git
synced 2024-11-28 08:38:39 +02:00
Updated docs
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
parent
98dd8bf9e9
commit
1aa22ce09b
@ -242,6 +242,7 @@ Middleware | Description
|
||||
[JWTAuth](https://labstack.com/echo/guide/jwt-middleware) | JWT authentication
|
||||
[Secure](https://labstack.com/echo/guide/secure-middleware) | Protection against attacks
|
||||
[CORS](https://labstack.com/echo/guide/cors-middleware) | Cross-Origin Resource Sharing
|
||||
[CSRF](https://labstack.com/echo/guide/csrf-middleware) | Cross-Site Request Forgery
|
||||
[Static](https://labstack.com/echo/guide/static-middleware) | Serve static files
|
||||
[AddTrailingSlash](https://labstack.com/echo/guide/add-trailing-slash-middleware) | Add trailing slash to the request URI
|
||||
[RemoveTrailingSlash](https://labstack.com/echo/guide/remove-trailing-slash-middleware) | Remove trailing slash from the request URI
|
||||
|
@ -30,18 +30,20 @@ type (
|
||||
// Optional. Default value none.
|
||||
CookieDomain string
|
||||
|
||||
// Paht of the CSRF cookie.
|
||||
// Path of the CSRF cookie.
|
||||
// Optional. Default value none.
|
||||
CookiePath string
|
||||
|
||||
// Expiriation time of the CSRF cookie.
|
||||
// Optioanl. Default value 24hrs.
|
||||
// Expiration time of the CSRF cookie.
|
||||
// Optional. Default value 24H.
|
||||
CookieExpires time.Time
|
||||
|
||||
// Indicates if CSRF cookie is secure.
|
||||
CookieSecure bool
|
||||
// Optional. Default value false.
|
||||
|
||||
// Indicates if CSRF cookie is HTTP only.
|
||||
// Optional. Default value false.
|
||||
CookieHTTPOnly bool
|
||||
}
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user