Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CorsMiddleware ¶
CorsMiddleware 跨域中间件
func (*CorsMiddleware) Instance ¶
func (cors *CorsMiddleware) Instance() func(*cc.Context) cc.Response
Cors 跨域设置
func (*CorsMiddleware) SetHeaders ¶
func (cors *CorsMiddleware) SetHeaders(headers ...string)
SetHeaders 设置跨域请求头
func (*CorsMiddleware) SetMethods ¶
func (cors *CorsMiddleware) SetMethods(methods ...string)
SetMethods 设置跨域方法
func (*CorsMiddleware) SetOrigin ¶
func (cors *CorsMiddleware) SetOrigin(origin string)
SetOrigin设置跨域源
Click to show internal directories.
Click to hide internal directories.