From 4e3c2c6430249521c3b6f1afae80ce453f0e4410 Mon Sep 17 00:00:00 2001 From: Matheus Nogueira Date: Fri, 26 Jan 2024 14:55:47 -0300 Subject: [PATCH] fix: add cors to agent (#3437) add cors to agent --- server/otlp/http_server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/otlp/http_server.go b/server/otlp/http_server.go index aed687f4f7..949083a5e9 100644 --- a/server/otlp/http_server.go +++ b/server/otlp/http_server.go @@ -73,6 +73,7 @@ func (s *httpServer) Stop() { func (s httpServer) Export(w http.ResponseWriter, r *http.Request) { contentType := r.Header.Get("content-type") response := newHttpResponse(w, contentType) + r.Header.Set("Access-Control-Allow-Origin", "*") s.logger.Debug("Received ExportTraceServiceRequest", zap.String("content-type", contentType))