From bc6a5e8cf243a158987170ccd7b05c5161017b8b Mon Sep 17 00:00:00 2001 From: Matheus Nogueira Date: Tue, 22 Oct 2024 18:40:05 -0300 Subject: [PATCH] add cors to http instead of grpc --- charts/tracetest-public-endpoint/templates/ingressroute.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/tracetest-public-endpoint/templates/ingressroute.yaml b/charts/tracetest-public-endpoint/templates/ingressroute.yaml index db85650..c021a31 100644 --- a/charts/tracetest-public-endpoint/templates/ingressroute.yaml +++ b/charts/tracetest-public-endpoint/templates/ingressroute.yaml @@ -8,8 +8,6 @@ spec: routes: - kind: Rule match: Host(`{{ .Values.global.urls.otlpingest.hostname }}`) && PathPrefix(`/opentelemetry.proto.collector.trace.v1.TraceService/Export`) - middlewares: - - name: {{ include "tracetest-cloud.fullname" . }}-cors services: - kind: Service name: {{ .Release.Name }}-public-endpoint-otel-collector @@ -18,6 +16,8 @@ spec: scheme: h2c - kind: Rule match: Host(`{{ .Values.global.urls.otlpingest.hostname }}`) && PathPrefix(`/v1/traces`) + middlewares: + - name: {{ include "tracetest-cloud.fullname" . }}-cors services: - kind: Service name: {{ .Release.Name }}-public-endpoint-otel-collector