Skip to content

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.

removed cors

Ankit Nayandcbf596073c2
diff --git a/pkg/query-service/app/server.go b/pkg/query-service/app/server.go
index d5c294b7f3..6e38f9ab26 100644
--- a/pkg/query-service/app/server.go
+++ b/pkg/query-service/app/server.go
@@ -5,7 +5,6 @@ import (
"net/http"
"github.com/gorilla/handlers"
- "github.com/rs/cors"
"github.com/soheilhy/cmux"
"go.signoz.io/query-service/druidQuery"
"go.signoz.io/query-service/godruid"
@@ -92,14 +91,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{"http://localhost:3000"},
+ // // 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 = r
handler = handlers.CompressHandler(handler)