chore: fix envoy cors config

This commit is contained in:
mhatal
2025-01-08 08:08:15 -06:00
parent fe8ab27840
commit 38b08a9ac7

View File

@@ -20,6 +20,9 @@ static_resources:
stat_prefix: ingress_http
codec_type: auto
http_filters:
- name: envoy.filters.http.cors
typed_config:
"@type": type.googleapis.com/envoy.extensions.filters.http.cors.v3.Cors
- name: envoy.filters.http.router
typed_config:
"@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router
@@ -43,8 +46,9 @@ static_resources:
"@type": type.googleapis.com/envoy.extensions.filters.http.cors.v3.CorsPolicy
allow_origin_string_match:
- prefix: "*"
allow_methods: GET, PUT, DELETE, POST, OPTIONS
allow_headers: Accept, Accept-Language, Content-Language, Content-Type, Range
allow_methods: "GET, POST, PUT, PATCH, DELETE, OPTIONS"
allow_headers: "DNT, User-Agent, X-Requested-With, If-Modified-Since, Cache-Control, Content-Type, Range, Authorization, Priority, Access-Control-Allow-Origin"
allow_credentials: true
max_age: "1728000"
clusters:
- name: stacks_api