We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4715a1b commit 0fabae7Copy full SHA for 0fabae7
server/option.go
@@ -28,11 +28,6 @@ func WithLogger(logger *logrus.Logger) Option {
28
29
// WithCORS adds the CORS handler to the request handling
30
func WithCORS(allowedOrigins []string) Option {
31
-
32
- if cap(allowedOrigins) == 0 {
33
- allowedOrigins = []string{"*"}
34
- }
35
36
c := cors.New(cors.Options{
37
AllowCredentials: true,
38
AllowedHeaders: []string{"*"},
0 commit comments