Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CrossOrigin = faygo.HandlerFunc(func(ctx *faygo.Context) error { ctx.SetHeader(faygo.HeaderAccessControlAllowOrigin, ctx.HeaderParam(faygo.HeaderOrigin)) ctx.SetHeader(faygo.HeaderAccessControlAllowCredentials, "true") return nil })
CrossOrigin creates Cross-Domain middleware
Functions ¶
func NewIPFilter ¶
func NewIPFilter(whitelist []string, realIP bool) faygo.HandlerFunc
NewIPFilter creates middleware that intercepts the specified IP prefix.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.