mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-12 10:09:02 +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{
|
c := cors.New(cors.Options{
|
||||||
AllowedOrigins: []string{"*"},
|
AllowedOrigins: []string{"*"},
|
||||||
// AllowCredentials: true,
|
// AllowCredentials: true,
|
||||||
// AllowedMethods: []string{"GET", "DELETE", "POST", "PUT"},
|
AllowedMethods: []string{"GET", "DELETE", "POST", "PUT"},
|
||||||
})
|
})
|
||||||
|
|
||||||
handler := c.Handler(r)
|
handler := c.Handler(r)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user