Skip to content

Commit aa0fd37

Browse files
committed
feat(cors): add TRACE to CORS allowed mehtods
1 parent 8409c47 commit aa0fd37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/serverHandler/cors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func (h *handler) cors(w http.ResponseWriter, r *http.Request) {
1717
}
1818

1919
// Access-Control-Allow-Methods
20-
acAllowMethods := []string{"GET", "HEAD", "POST", "PUT", "DELETE", "OPTIONS"}
20+
acAllowMethods := []string{"GET", "HEAD", "POST", "PUT", "DELETE", "OPTIONS", "TRACE"}
2121
acReqMethods := r.Header["Access-Control-Request-Method"]
2222
if len(acReqMethods) > 0 {
2323
acReqMethod := acReqMethods[0]

0 commit comments

Comments
 (0)