//
pkg.gl
Category
github.com/gotid/god
api
internal
cors
package
1.4.3
Repository:
https://github.com/gotid/god.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
3
Dependents
1
Files
99 SLOC
#
Functions
Middleware
Middleware 返回一个添加 CORS 标头的中间件到响应中。.
NotAllowedHandler
NotAllowedHandler 处理来源不允许的跨域请求。 默认允许所有来源,如果指定来源则只接收1个,其他会忽略。.