func corsMiddle(h http.Handler) http.Handler {
	fn := func(w http.ResponseWriter, r *http.Request) {
		w.Header().Add("Access-Control-Allow-Origin", "*")
		w.Header().Add("Access-Control-Allow-Methods", "GET, POST, PUT, OPTIONS, DELETE")
		w.Header().Add("Access-Control-Allow-Headers", "Content-Type")
		if r.Method == "OPTIONS" {
			w.WriteHeader(200)
			return
		}
		h.ServeHTTP(w, r)
	}
	return http.HandlerFunc(fn)
}
// corsMiddle middleware handles the supported access-control headers
corsMiddle middleware handles the supported access-control headers
// corsMiddle middleware handles the supported access - control headers
func corsMiddle(h http.Handler) http.Handler {
	fn := func(w http.ResponseWriter, r *http.Request) {
		w.Header().Add("Access-Control-Allow-Origin", "*")
		w.Header().Add("Access-Control-Allow-Methods", "GET, POST, PUT, OPTIONS, DELETE")
		w.Header().Add("Access-Control-Allow-Headers", "Content-Type")
		if r.Method == "OPTIONS" {
			w.WriteHeader(200)
			return
		}
		h.ServeHTTP(w, r)
	}
	return http.HandlerFunc(fn)
}
func corsMiddle ( h http . Handler ) http . Handler { fn := func ( w http . ResponseWriter , r * http . Request ) { w . Header ( ) . Add ( " " , " " ) w . Header ( ) . Add ( " " , " " ) w . Header ( ) . Add ( " " , " " ) if r . Method == " " { w . WriteHeader ( 200 ) return } h . ServeHTTP ( w , r ) } return http . HandlerFunc ( fn ) }
corsMiddle middleware handles the supported access-control headers
corsMiddle middleware handles the supported access - control headers