@@ -141,6 +141,7 @@ func (a annImpl) Frontend(i *store.Ingress, r *rules.List, m maps.Maps) []Annota
141141resSetCORS .NewAnnotation ("cors-allow-headers" ),
142142resSetCORS .NewAnnotation ("cors-max-age" ),
143143resSetCORS .NewAnnotation ("cors-allow-credentials" ),
144+ resSetCORS .NewAnnotation ("cors-respond-to-options" ),
144145}
145146}
146147
@@ -248,34 +249,35 @@ func Timeout(name string, annotations ...map[string]string) (out *int64, err err
248249// SpecificAnnotations is a set of annotations that uses rules to produce specific configuration with rule ID in configuration file.
249250// These annotations in an ingress can't be merged with other ingresses annotations when these ingresses point to the same service because specific paths must be treated specifically.
250251var SpecificAnnotations = map [string ]struct {}{
251- "backend-config-snippet" : {},
252- "deny-list" : {},
253- "blacklist" : {},
254- "allow-list" : {},
255- "whitelist" : {},
256- "src-ip-header" : {},
257- "auth-type" : {},
258- "auth-realm" : {},
259- "auth-secret" : {},
260- "ssl-redirect" : {},
261- "ssl-redirect-port" : {},
262- "ssl-redirect-code" : {},
263- "request-redirect" : {},
264- "request-redirect-code" : {},
265- "request-capture" : {},
266- "request-capture-len" : {},
267- "path-rewrite" : {},
268- "rate-limit-requests" : {},
269- "rate-limit-period" : {},
270- "rate-limit-size" : {},
271- "rate-limit-status-code" : {},
272- "request-set-header" : {},
273- "response-set-header" : {},
274- "set-host" : {},
275- "cors-enable" : {},
276- "cors-allow-origin" : {},
277- "cors-allow-methods" : {},
278- "cors-allow-headers" : {},
279- "cors-max-age" : {},
280- "cors-allow-credentials" : {},
252+ "backend-config-snippet" : {},
253+ "deny-list" : {},
254+ "blacklist" : {},
255+ "allow-list" : {},
256+ "whitelist" : {},
257+ "src-ip-header" : {},
258+ "auth-type" : {},
259+ "auth-realm" : {},
260+ "auth-secret" : {},
261+ "ssl-redirect" : {},
262+ "ssl-redirect-port" : {},
263+ "ssl-redirect-code" : {},
264+ "request-redirect" : {},
265+ "request-redirect-code" : {},
266+ "request-capture" : {},
267+ "request-capture-len" : {},
268+ "path-rewrite" : {},
269+ "rate-limit-requests" : {},
270+ "rate-limit-period" : {},
271+ "rate-limit-size" : {},
272+ "rate-limit-status-code" : {},
273+ "request-set-header" : {},
274+ "response-set-header" : {},
275+ "set-host" : {},
276+ "cors-enable" : {},
277+ "cors-allow-origin" : {},
278+ "cors-allow-methods" : {},
279+ "cors-allow-headers" : {},
280+ "cors-max-age" : {},
281+ "cors-allow-credentials" : {},
282+ "cors-respond-to-options" : {},
281283}
0 commit comments