Prior to #116, specifying AllowedOriginValidator acted as an override to AllowedOrigins. Afterwards, the same configuration will return Access-Control-Allow-Origin: * because of the default value for allowedOrigins.
// before: will only reflect allowed origins
// after: will reflect "*"
gorilla.CORS(
gorilla.AllowedOriginValidator(myValidator)
)
Fixing this requires specifying a blank AllowedOrigins to override the default value:
gorilla.CORS(
gorilla.AllowedOrigins([]string{})
gorilla.AllowedOriginValidator(myValidator)
)