fix: fixed cors error for PUT (#287)

This commit is contained in:
Ankit Nayan 2021-09-02 14:55:07 +05:30 committed by GitHub
parent 30961da59f
commit 118ee9dd90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)