Skip to content

Commit

Permalink
fix: add cors to agent (#3437)
Browse files Browse the repository at this point in the history
add cors to agent
  • Loading branch information
mathnogueira committed Jan 26, 2024
1 parent 6c32413 commit 4e3c2c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/otlp/http_server.go
Expand Up @@ -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))

Expand Down

0 comments on commit 4e3c2c6

Please sign in to comment.