mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-13 09:29:04 +08:00
removed cors
This commit is contained in:
parent
bcc0a84a99
commit
dcbf596073
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user