run the next middleware in the chain

This commit is contained in:
Chris Cromer 2023-01-31 23:22:13 -03:00 committed by Martin Araneda
parent 0f3cbd6f05
commit 1bd42249ce

View File

@ -13,5 +13,7 @@ func Cors(handler http.Handler) http.Handler {
writer.Header().Set("Access-Control-Allow-Origin", origin)
writer.Header().Set("Access-Control-Allow-Headers", "Content-Type")
}
handler.ServeHTTP(writer, request)
})
}