run the next middleware in the chain

This commit is contained in:
Chris Cromer 2023-01-31 23:22:13 -03:00
parent 2ed4b14cf1
commit b0379d1219
Signed by: cromer
GPG Key ID: FA91071797BEEEC2

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)
})
}