diff --git a/cors.go b/cors.go index d4bbbe3..39565ff 100644 --- a/cors.go +++ b/cors.go @@ -106,7 +106,7 @@ func (ch *cors) ServeHTTP(w http.ResponseWriter, r *http.Request) { w.Header().Set(corsAllowCredentialsHeader, "true") } - if len(ch.allowedOrigins) > 1 || ch.allowedOrigins[0] == corsOriginMatchAll { + if len(ch.allowedOrigins) > 1 { w.Header().Set(corsVaryHeader, corsOriginHeader) }