//
pkg.gl
Category
github.com/onexstack/onex
pkg
middleware
gin
package
0.2.0-alpha.14
Repository:
https://github.com/onexstack/onex.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
3
Dependents
0
Files
33 SLOC
#
Functions
Cors
Cors 是一个 Gin 中间件,用来设置 options 请求的返回头,然后退出中间件链,并结束请求(浏览器跨域设置).
NoCache
NoCache 是一个 Gin 中间件,用来禁止客户端缓存 HTTP 请求的返回结果.
Secure
Secure 是一个 Gin 中间件,用来添加一些安全和资源访问相关的 HTTP 头.