We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01d802a commit 12cc543Copy full SHA for 12cc543
x/oauth2cors/cors.go
@@ -49,9 +49,8 @@ func Middleware(
49
}
50
g, err := glob.Compile(strings.ToLower(o), '.')
51
if err != nil {
52
- reg.Logger().WithError(err).WithField("pattern", o).Error("Unable to parse CORS origin")
53
- h.ServeHTTP(w, r)
54
- return
+ reg.Logger().WithError(err).WithField("pattern", o).Error("Unable to parse CORS origin, ignoring it")
+ continue
55
56
57
patterns = append(patterns, g)
0 commit comments