SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
added cors
Ankit Nayanb6c718a53619
diff --git a/pkg/query-service/app/server.go b/pkg/query-service/app/server.goindex 527427db6b..4abf7b7e5a 100644--- a/pkg/query-service/app/server.go+++ b/pkg/query-service/app/server.go@@ -9,6 +9,7 @@ import ("github.com/gorilla/handlers""github.com/gorilla/mux""github.com/posthog/posthog-go"+ "github.com/rs/cors""github.com/soheilhy/cmux""go.signoz.io/query-service/druidQuery""go.signoz.io/query-service/godruid"@@ -104,14 +105,14 @@ func createHTTPServer(druidClientUrl string) *http.Server {apiHandler.RegisterRoutes(r)- // c := cors.New(cors.Options{- // AllowedOrigins: []string{"http://localhost:3000"},- // // AllowCredentials: true,- // // AllowedMethods: []string{"GET", "DELETE", "POST", "PUT"},- // })+ c := cors.New(cors.Options{+ AllowedOrigins: []string{"*"},+ // AllowCredentials: true,+ // AllowedMethods: []string{"GET", "DELETE", "POST", "PUT"},+ })- // handler := c.Handler(r)- var handler http.Handler = r+ handler := c.Handler(r)+ // var handler http.Handler = rhandler = handlers.CompressHandler(handler)