mirror of
https://github.com/fiatjaf/khatru.git
synced 2026-06-06 02:31:15 +02:00
refactor(blossom): remove setCors function
This commit is contained in:
@@ -5,12 +5,6 @@ import (
|
|||||||
"net/http"
|
"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) {
|
func blossomError(w http.ResponseWriter, msg string, code int) {
|
||||||
w.Header().Add("X-Reason", msg)
|
w.Header().Add("X-Reason", msg)
|
||||||
w.WriteHeader(code)
|
w.WriteHeader(code)
|
||||||
|
|||||||
Reference in New Issue
Block a user