mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-11 15:59:04 +08:00
fix: fixed cors error for PUT (#287)
This commit is contained in:
parent
30961da59f
commit
118ee9dd90
@ -121,7 +121,7 @@ func createHTTPServer() (*http.Server, error) {
|
||||
c := cors.New(cors.Options{
|
||||
AllowedOrigins: []string{"*"},
|
||||
// AllowCredentials: true,
|
||||
// AllowedMethods: []string{"GET", "DELETE", "POST", "PUT"},
|
||||
AllowedMethods: []string{"GET", "DELETE", "POST", "PUT"},
|
||||
})
|
||||
|
||||
handler := c.Handler(r)
|
||||
|
Loading…
x
Reference in New Issue
Block a user