From 48c022de5e9072881c5fa644bec30a93d110532f Mon Sep 17 00:00:00 2001
From: a <a@a.a>
Date: Tue, 30 Aug 2022 02:11:10 -0500
Subject: [PATCH] nvm

---
 http.go | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/http.go b/http.go
index b93a5ba..24c62cb 100644
--- a/http.go
+++ b/http.go
@@ -273,11 +273,6 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
 		w.WriteHeader(http.StatusOK)
 		return
 	}
-	if r.Method == http.MethodOptions {
-		w.Header().Set("Access-Control-Allow-Origin", "*")
-		w.Header().Set("Access-Control-Allow-Methods", "POST, GET, OPTIONS, PUT, DELETE")
-		w.Header().Set("Access-Control-Allow-Headers", "Accept, Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization")
-	}
 	if code, err := validateRequest(r); err != nil {
 		http.Error(w, err.Error(), code)
 		return
-- 
GitLab