We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f0cb8f commit f44ef93Copy full SHA for f44ef93
components/proxy/plugins/corsorigin/cors_origin.go
@@ -128,8 +128,8 @@ func (m *CorsOrigin) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
128
return fmt.Errorf("base_domain and allowed_origins subdirectives are mutually exclusive, configure only one of them")
129
}
130
131
- if !m.AnyDomain && len(m.AllowedOrigins) == 0 {
132
- return fmt.Errorf("Please configure allowed_origins subdirective")
+ if !m.AnyDomain && m.BaseDomain == "" && len(m.AllowedOrigins) == 0 {
+ return fmt.Errorf("Please configure the base_domain or allowed_origins subdirective")
133
134
135
return nil
0 commit comments