You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
I think the difference between gorilla/handlers and the other examples listed in #116 is that gorilla/handlers treated AllowedOriginValidator as an override and ignored the default * configuration.
It should be possible to specify AllowedOriginValidator(myValidator) alongside AllowCredentials(). It should not be possible to specify AllowedOrigins([]string{"*"}) alongside AllowCredentials().
Prior to #116, specifying
AllowedOriginValidator
acted as an override toAllowedOrigins
. Afterwards, the same configuration will returnAccess-Control-Allow-Origin: *
because of the default value forallowedOrigins
.Fixing this requires specifying a blank
AllowedOrigins
to override the default value:The text was updated successfully, but these errors were encountered: