View definition

(CorsMiddleware).OriginValidator

Defined in github.com/ant0ine/go-json-rest/rest/cors.go

Description

Function excecuted for every CORS requests to validate the Origin. (Required) Must return true if valid, false if invalid. For instance: simple equality, regexp, DB lookup, ...

OriginValidator is referenced in 3 repositories

github.com/ant0ine/go-json-rest github.com/SocialHarvest/reporter github.com/tmaiaroto/gopartman