refactor(blossom): remove setCors function

This commit is contained in:
Anthony Accioly
2024-11-05 19:04:41 +00:00
parent 3d4dd71510
commit 1498da09c8

View File

@@ -5,12 +5,6 @@ import (
"net/http"
)
//func setCors(w http.ResponseWriter) {
// w.Header().Set("Access-Control-Allow-Origin", "*")
// w.Header().Set("Access-Control-Allow-Headers", "Authorization, Content-Type")
// w.Header().Set("Access-Control-Allow-Methods", "GET, PUT, DELETE, OPTIONS")
//}
func blossomError(w http.ResponseWriter, msg string, code int) {
w.Header().Add("X-Reason", msg)
w.WriteHeader(code)