diff --git a/backend/utils/nginx/components/location.go b/backend/utils/nginx/components/location.go index c407c0ede..80620500d 100644 --- a/backend/utils/nginx/components/location.go +++ b/backend/utils/nginx/components/location.go @@ -234,11 +234,13 @@ func (l *Location) AddSubFilter(subFilters map[string]string) { } l.UpdateDirective("proxy_set_header", []string{"Accept-Encoding", `""`}) l.UpdateDirective("sub_filter_once", []string{"off"}) + l.UpdateDirective("sub_filter_types", []string{"*"}) } func (l *Location) RemoveSubFilter() { l.RemoveDirective("sub_filter", []string{}) l.RemoveDirective("proxy_set_header", []string{"Accept-Encoding", `""`}) l.RemoveDirective("sub_filter_once", []string{"off"}) + l.RemoveDirective("sub_filter_types", []string{"*"}) l.Replaces = nil }