Skip to content

Commit 660488b

Browse files
committed
BUG: fix the name of cors-allow-methods annotation
1 parent 6202e55 commit 660488b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controller/annotations/annotations.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func Frontend(i *store.Ingress, r *rules.Rules, m maps.MapFiles) []Annotation {
9393
// always put cors-enable annotation before any oth
9494
resSetCORS.NewAnnotation("cors-enable"),
9595
resSetCORS.NewAnnotation("cors-allow-origin"),
96-
resSetCORS.NewAnnotation("cors-allow-method"),
96+
resSetCORS.NewAnnotation("cors-allow-methods"),
9797
resSetCORS.NewAnnotation("cors-allow-headers"),
9898
resSetCORS.NewAnnotation("cors-max-age"),
9999
}

0 commit comments

Comments
 (0)